mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-06 17:17:02 +08:00
Endpoint discovery from handshake initiation
This commit is contained in:
@@ -356,6 +356,12 @@ func (device *Device) RoutineHandshake() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update endpoint
|
||||||
|
|
||||||
|
peer.mutex.Lock()
|
||||||
|
peer.endpoint = elem.source
|
||||||
|
peer.mutex.Unlock()
|
||||||
|
|
||||||
// create response
|
// create response
|
||||||
|
|
||||||
response, err := device.CreateMessageResponse(peer)
|
response, err := device.CreateMessageResponse(peer)
|
||||||
|
Reference in New Issue
Block a user