Skip to content

Commit

Permalink
Revert "fix: only return public ips in fallback iter"
Browse files Browse the repository at this point in the history
This reverts commit bb2fd4c.
  • Loading branch information
2color committed Dec 19, 2024
1 parent 3bc3c0f commit 2bed205
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server_cached_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ func (it *cacheFallbackIter) dispatchFindPeer(record types.PeerRecord) {
}
if len(peers) > 0 {
// If we found the peer, pass back the result
peers[0].Addrs = filterPrivateMultiaddr(peers[0].Addrs) // filter out private addresses
it.findPeersResult <- *peers[0]
} else {
it.findPeersResult <- record // pass back the record with no addrs
Expand Down

0 comments on commit 2bed205

Please sign in to comment.