diff --git a/src/core/meshcop/joiner_router.cpp b/src/core/meshcop/joiner_router.cpp index 86a24a9a4..20e1b980d 100644 --- a/src/core/meshcop/joiner_router.cpp +++ b/src/core/meshcop/joiner_router.cpp @@ -66,7 +66,6 @@ JoinerRouter::JoinerRouter(Instance &aInstance) , mIsJoinerPortConfigured(false) , mExpectJoinEntRsp(false) { - mSocket.GetSockName().mPort = OPENTHREAD_CONFIG_JOINER_UDP_PORT; GetNetif().GetCoap().AddResource(mRelayTransmit); aInstance.GetNotifier().RegisterCallback(mNotifierCallback); }