Endpoint discovery from handshake initiation

This commit is contained in:
Mathias Hall-Andersen 2017-07-13 21:29:22 +02:00
parent 93e3848ea7
commit 0043008ad0

View file

@ -356,6 +356,12 @@ func (device *Device) RoutineHandshake() {
return
}
// update endpoint
peer.mutex.Lock()
peer.endpoint = elem.source
peer.mutex.Unlock()
// create response
response, err := device.CreateMessageResponse(peer)