From e25c784b547ca0a1fe69c298030a9dafb7170696 Mon Sep 17 00:00:00 2001 From: Dennis Trautwein Date: Tue, 8 Nov 2022 23:52:43 +0100 Subject: [PATCH] fix: return filtered addrs (#1855) --- p2p/net/swarm/swarm_dial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/net/swarm/swarm_dial.go b/p2p/net/swarm/swarm_dial.go index f5e5cba8d8..1efde8c44a 100644 --- a/p2p/net/swarm/swarm_dial.go +++ b/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) - return resolved, nil + return goodAddrs, nil } func (s *Swarm) resolveAddrs(ctx context.Context, pi peer.AddrInfo) ([]ma.Multiaddr, error) {