mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +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 srv.loopWG.Done()
|
||||
if ip, err := srv.NAT.ExternalIP(); err == nil {
|
||||
srv.logger.Info("NAT ExternalIP resolved", "ip", ip)
|
||||
srv.localnode.SetStaticIP(ip)
|
||||
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