[meshcop] do not set joiner port in constructor (#3131)

This commit is contained in:
Yakun Xu
2018-10-09 11:14:00 -07:00
committed by Jonathan Hui
parent 2af44beb74
commit 12171a1270
-1
View File
@@ -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);
}