no longer store incoming addrs
Juan Batiz-Benet committed
Oct 11, 2014 at 06:38 UTC
d113aa8c1dcff1bb2a2685b44d47980e2518f4ac
1 file changed
+4
-1
net/swarm/conn.go
+4
-1
@@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
114
log.Debug("%s secured connection: %s", c.Local, c.Remote)
115
116
// add address of connection to Peer. Maybe it should happen in connSecure.
117
- c.Remote.AddAddress(c.Conn.RemoteMultiaddr())
117
+ // NOT adding this address here, because the incoming address in TCP
118
+ // is an EPHEMERAL address, and not the address we want to keep around.
119
+ // addresses should be figured out through the DHT.
120
+ // c.Remote.AddAddress(c.Conn.RemoteMultiaddr())
121
122
if err := s.connVersionExchange(c); err != nil {
123
return fmt.Errorf("Conn version exchange error: %v", err)