p2p: fix accidental termination of portMappingLoop (#28911)

This commit is contained in:
Chris Ziogas
2024-02-05 22:00:46 +01:00
committed by GitHub
parent 253447a4f5
commit 19af9008f1
+1 -1
View File
@@ -127,7 +127,7 @@ func (srv *Server) portMappingLoop() {
} else if !ip.Equal(lastExtIP) {
log.Debug("External IP changed", "ip", extip, "interface", srv.NAT)
} else {
return
continue
}
// Here, we either failed to get the external IP, or it has changed.
lastExtIP = ip