From fe2e3630f94c2f99934b13f060f40a5459239acf Mon Sep 17 00:00:00 2001 From: sukun Date: Wed, 6 Sep 2023 11:48:34 +0530 Subject: [PATCH] remove thin-waist check from private address since !loopback ensures it --- p2p/protocol/identify/id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/protocol/identify/id.go b/p2p/protocol/identify/id.go index 72dd019dc9..2970de4347 100644 --- a/p2p/protocol/identify/id.go +++ b/p2p/protocol/identify/id.go @@ -996,7 +996,7 @@ func filterAddrs(addrs []ma.Multiaddr, remote ma.Multiaddr) []ma.Multiaddr { return addrs } if manet.IsPrivateAddr(remote) { - return ma.FilterAddrs(addrs, func(a ma.Multiaddr) bool { return !manet.IsThinWaist(a) || !manet.IsIPLoopback(a) }) + return ma.FilterAddrs(addrs, func(a ma.Multiaddr) bool { return !manet.IsIPLoopback(a) }) } return ma.FilterAddrs(addrs, func(a ma.Multiaddr) bool { return !manet.IsThinWaist(a) || manet.IsPublicAddr(a) }) }