Commit 7ee0c6dc authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #285 from jbenet/bugfix/284

prevent NAT check if given nil multiaddr
parents e489a887 36a4ee70
......@@ -119,7 +119,11 @@ func (s *Swarm) connSetup(c conn.Conn) (conn.Conn, error) {
}
// check for nats. you know, just in case.
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