mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-18 06:56:54 +02:00
Endpoint discovery from handshake initiation
This commit is contained in:
parent
93e3848ea7
commit
0043008ad0
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue