no longer store incoming addrs

This commit is contained in:
Juan Batiz-Benet 2014-10-11 06:38:12 -07:00
parent a2d55f36bd
commit d113aa8c1d

View File

@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
log.Debug("%s secured connection: %s", c.Local, c.Remote)
// add address of connection to Peer. Maybe it should happen in connSecure.
c.Remote.AddAddress(c.Conn.RemoteMultiaddr())
// NOT adding this address here, because the incoming address in TCP
// is an EPHEMERAL address, and not the address we want to keep around.
// addresses should be figured out through the DHT.
// c.Remote.AddAddress(c.Conn.RemoteMultiaddr())
if err := s.connVersionExchange(c); err != nil {
return fmt.Errorf("Conn version exchange error: %v", err)