[coap] set the interfaceId on retransmission (#2370)

This commit is contained in:
Robin Vos
2017-11-28 17:35:24 +00:00
committed by Jonathan Hui
parent 741941e271
commit 513903061a
+1
View File
@@ -331,6 +331,7 @@ void CoapBase::HandleRetransmissionTimer(void)
messageInfo.SetPeerAddr(coapMetadata.mDestinationAddress);
messageInfo.SetPeerPort(coapMetadata.mDestinationPort);
messageInfo.SetSockAddr(coapMetadata.mSourceAddress);
messageInfo.SetInterfaceId(GetNetif().GetInterfaceId());
SendCopy(*message, messageInfo);
}