New endpoint is already set in WgPeer::ParseMessageHandshakeResponse
This commit is contained in:
parent
a03980e74b
commit
0c0e6e1398
1 changed files with 0 additions and 2 deletions
|
@ -1026,8 +1026,6 @@ void WireguardProcessor::HandleHandshakeResponsePacket(Packet *packet) {
|
|||
if (peer) {
|
||||
stats_.handshakes_out_success++;
|
||||
WG_SCOPED_LOCK(peer->mutex_);
|
||||
if (peer->allow_endpoint_change_ && packet->addr.sin.sin_family != 0)
|
||||
peer->endpoint_ = packet->addr;
|
||||
peer->OnHandshakeAuthComplete();
|
||||
peer->OnHandshakeFullyComplete();
|
||||
NotifyHandshakeComplete();
|
||||
|
|
Loading…
Reference in a new issue