Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 1f845a2

Browse files
Yogesh PandeYogesh Pande
authored andcommitted
Removing port randomization as it breaks Bootstrap sequence.
1 parent 377280a commit 1f845a2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

source/m2minterfaceimpl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,6 @@ void M2MInterfaceImpl::state_bootstrapped( EventData */*data*/)
636636
{
637637
#ifndef MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
638638
tr_debug("M2MInterfaceImpl::state_bootstrapped");
639-
_connection_handler->stop_listening();
640-
_listen_port = rand() % 64511 + 1024;
641-
_connection_handler->bind_connection(_listen_port);
642639
#endif //MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
643640
}
644641

0 commit comments

Comments
 (0)