mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 08:18:03 +08:00
no longer store incoming addrs
This commit is contained in:
parent
a2d55f36bd
commit
d113aa8c1d
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user