mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
p2p: log NAT ExternalIP error (#8026)
This commit is contained in:
parent
d2d261e560
commit
6c017c33f9
@ -568,8 +568,11 @@ func (srv *Server) setupLocalNode() error {
|
|||||||
defer debug.LogPanic()
|
defer debug.LogPanic()
|
||||||
defer srv.loopWG.Done()
|
defer srv.loopWG.Done()
|
||||||
if ip, err := srv.NAT.ExternalIP(); err == nil {
|
if ip, err := srv.NAT.ExternalIP(); err == nil {
|
||||||
|
srv.logger.Info("NAT ExternalIP resolved", "ip", ip)
|
||||||
srv.localnode.SetStaticIP(ip)
|
srv.localnode.SetStaticIP(ip)
|
||||||
srv.updateLocalNodeStaticAddrCache()
|
srv.updateLocalNodeStaticAddrCache()
|
||||||
|
} else {
|
||||||
|
srv.logger.Warn("NAT ExternalIP resolution has failed, try to pass a different --nat option", "err", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user