Unverified Commit 6c88b44a authored by Steven Allen's avatar Steven Allen Committed by GitHub
Browse files

Merge pull request #394 from libp2p/fix/revert-correct-external-addr

Revert "Merge pull request #386 from libp2p/fix/correct-external-addr"
parents 0c971f9a c83318bf
......@@ -8,7 +8,6 @@ import (
lgbl "github.com/libp2p/go-libp2p-loggables"
inat "github.com/libp2p/go-libp2p-nat"
inet "github.com/libp2p/go-libp2p-net"
pstore "github.com/libp2p/go-libp2p-peerstore"
ma "github.com/multiformats/go-multiaddr"
)
......@@ -188,9 +187,6 @@ func addPortMapping(nmgr *natManager, intaddr ma.Multiaddr) {
return
}
// TODO: make these temporary and rediscover them.
nmgr.net.Peerstore().AddAddr(nmgr.net.LocalPeer(), extaddr, pstore.PermanentAddrTTL)
lm["outcome"] = "success"
lm["externalAddr"] = func() interface{} { return extaddr.String() }
log.Infof("established nat port mapping: %s <--> %s", intaddr, extaddr)
......
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