Browse Source

fix: return filtered addrs (#1855)

pull/1867/head
Dennis Trautwein 2 years ago
committed by GitHub
parent
commit
2d28a045fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/net/swarm/swarm_dial.go

2
p2p/net/swarm/swarm_dial.go

@ -334,7 +334,7 @@ func (s *Swarm) addrsForDial(ctx context.Context, p peer.ID) ([]ma.Multiaddr, er
s.peers.AddAddrs(p, goodAddrs, peerstore.TempAddrTTL) s.peers.AddAddrs(p, goodAddrs, peerstore.TempAddrTTL)
return resolved, nil return goodAddrs, nil
} }
func (s *Swarm) resolveAddrs(ctx context.Context, pi peer.AddrInfo) ([]ma.Multiaddr, error) { func (s *Swarm) resolveAddrs(ctx context.Context, pi peer.AddrInfo) ([]ma.Multiaddr, error) {

Loading…
Cancel
Save