From 37cd8eb34fa0a1203073fd886244eac001d5642c Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:12:44 +0200 Subject: [PATCH] Update ipip-0484.md Co-authored-by: Marcin Rataj --- src/ipips/ipip-0484.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipips/ipip-0484.md b/src/ipips/ipip-0484.md index eac2cc98..f36251f3 100644 --- a/src/ipips/ipip-0484.md +++ b/src/ipips/ipip-0484.md @@ -50,7 +50,7 @@ The proposed change is to add a `?filter-addrs` parameter to the `GET /routing/v - The value of the `filter-addrs` parameter is a comma-separated list of network transport protocol _name strings_ as defined in the [multiaddr protocol registry](https://github.com/multiformats/multiaddr/blob/master/protocols.csv), e.g. `?filter-addrs=webtransport`. - `unknown` can be be passed to include providers whose multiaddrs are unknown, e.g. `?filter-addrs=unknown`. This allows filtering providers whose multiaddrs are unknown at the time of filtering. - Multiaddrs are filtered by checking if the protocol name appears in any of the multiaddrs (logical OR). -- Negative filtering is done by prefixing the protocol name with `!`, e.g. `?filter-addrs=!quic-v1,!tcp`. Note that negative filtering is done by checking if the protocol name does not appear in any of the multiaddrs (logical AND). +- Negative filtering is done by prefixing the protocol name with `!`, e.g. to skip IPv6 and QUIC addrs: `?filter-addrs=!ip6,!quic-v1`. Note that negative filtering is done by checking if the protocol name does not appear in any of the multiaddrs (logical AND). - If no parameter is passed, the default behavior is to return the original list of addresses unchanged. - If only negative filters are provided, addresses not passing any of the negative filters are included. - If positive filters are provided, only addresses passing at least one positive filter (and no negative filters) are included.