p2p: fix accidental termination of portMappingLoop (#28911)

This commit is contained in:
Chris Ziogas 2024-02-05 23:00:46 +02:00 committed by GitHub
parent 253447a4f5
commit 19af9008f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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