Fix log message on peer move
This commit is contained in:
1 parent
501f40d9c1
commit
cbcd5da680
1 file changed
+1
-1
@@ -231,7 +231,7 @@ func (conn *LocalConnection) ReceivedHeartbeat(remoteUDPAddr *net.UDPAddr, connU
|
|||||||
if oldRemoteUDPAddr == nil {
|
if oldRemoteUDPAddr == nil {
|
||||||
return conn.sendFastHeartbeats()
|
return conn.sendFastHeartbeats()
|
||||||
} else if oldRemoteUDPAddr.String() != remoteUDPAddr.String() {
|
} else if oldRemoteUDPAddr.String() != remoteUDPAddr.String() {
|
||||||
Log.Println("Peer", conn.remote, "moved from", old, "to", remoteUDPAddr)
|
Log.Println("Peer", conn.remote, "moved from", oldRemoteUDPAddr, "to", remoteUDPAddr)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user