Skip to content

Commit

Permalink
Merge branch 'master' of github.com:libp2p/go-libp2p into test/autonat
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott committed Aug 3, 2020
2 parents b515349 + fa07fcf commit 17b55f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/host/basic/basic_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {
}

// Did the router give us a routable public addr?
if manet.IsPublicAddr(mappedMaddr) {
if manet.IsPublicAddr(extMaddr) {
//well done
continue
}
Expand All @@ -951,7 +951,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {
}

// Drop the IP from the external maddr
_, extMaddrNoIP := ma.SplitFirst(mappedMaddr)
_, extMaddrNoIP := ma.SplitFirst(extMaddr)

for _, obsMaddr := range observed {
// Extract a public observed addr.
Expand Down

0 comments on commit 17b55f0

Please sign in to comment.