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) {
|
if (peer) {
|
||||||
stats_.handshakes_out_success++;
|
stats_.handshakes_out_success++;
|
||||||
WG_SCOPED_LOCK(peer->mutex_);
|
WG_SCOPED_LOCK(peer->mutex_);
|
||||||
if (peer->allow_endpoint_change_ && packet->addr.sin.sin_family != 0)
|
|
||||||
peer->endpoint_ = packet->addr;
|
|
||||||
peer->OnHandshakeAuthComplete();
|
peer->OnHandshakeAuthComplete();
|
||||||
peer->OnHandshakeFullyComplete();
|
peer->OnHandshakeFullyComplete();
|
||||||
NotifyHandshakeComplete();
|
NotifyHandshakeComplete();
|
||||||
|
|
Loading…
Reference in a new issue