Skip to content

Commit

Permalink
fix: return filtered addrs (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra authored and MarcoPolo committed Nov 9, 2022
1 parent 90bbd2c commit a1a4723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/swarm/swarm_dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a1a4723

Please sign in to comment.