Commit d113aa8c authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

no longer store incoming addrs

parent a2d55f36
...@@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error { ...@@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
log.Debug("%s secured connection: %s", c.Local, c.Remote) log.Debug("%s secured connection: %s", c.Local, c.Remote)
// add address of connection to Peer. Maybe it should happen in connSecure. // 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 { if err := s.connVersionExchange(c); err != nil {
return fmt.Errorf("Conn version exchange error: %v", err) return fmt.Errorf("Conn version exchange error: %v", err)
......
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