[dtls] fix connection from host interface (#3992)

This commit is contained in:
Yakun Xu
2019-07-15 08:53:27 -07:00
committed by Jonathan Hui
parent 9d57e4b9b9
commit 6db6ad8045
+1
View File
@@ -180,6 +180,7 @@ void Dtls::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageI
mPeerAddress.SetPeerAddr(aMessageInfo.GetPeerAddr());
mPeerAddress.SetPeerPort(aMessageInfo.GetPeerPort());
mPeerAddress.SetIsHostInterface(aMessageInfo.IsHostInterface());
if (Get<ThreadNetif>().IsUnicastAddress(aMessageInfo.GetSockAddr()))
{