Commit 36a4ee70 authored by Jeromy's avatar Jeromy

prevent NAT check if given nil multiaddr

parent e489a887
......@@ -119,7 +119,11 @@ func (s *Swarm) connSetup(c conn.Conn) (conn.Conn, error) {
}
// check for nats. you know, just in case.
s.checkNATWarning(h3result.LocalObservedAddress)
if h3result.LocalObservedAddress != nil {
s.checkNATWarning(h3result.LocalObservedAddress)
} else {
log.Warningf("Received nil observed address from %s", c.RemotePeer())
}
// add to conns
s.connsLock.Lock()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment