From f904041bdd2643fabd204485825d4761fc44a83f Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:45:35 +0200 Subject: [PATCH] fix: filter options --- packages/helia/src/utils/libp2p-defaults.browser.ts | 4 ++-- packages/helia/src/utils/libp2p-defaults.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/helia/src/utils/libp2p-defaults.browser.ts b/packages/helia/src/utils/libp2p-defaults.browser.ts index b4199d17..8585ce8f 100644 --- a/packages/helia/src/utils/libp2p-defaults.browser.ts +++ b/packages/helia/src/utils/libp2p-defaults.browser.ts @@ -65,8 +65,8 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti autoNAT: autoNAT(), dcutr: dcutr(), delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { - filterAddrs: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterProtocols: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss'] + filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], + filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss'] }), dht: kadDHT({ clientMode: true, diff --git a/packages/helia/src/utils/libp2p-defaults.ts b/packages/helia/src/utils/libp2p-defaults.ts index 3fc08982..ff4fda35 100644 --- a/packages/helia/src/utils/libp2p-defaults.ts +++ b/packages/helia/src/utils/libp2p-defaults.ts @@ -74,8 +74,8 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti autoNAT: autoNAT(), dcutr: dcutr(), delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { - filterAddrs: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterProtocols: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss'] + filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], + filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss'] }), dht: kadDHT({ validators: {