diff --git a/packages/helia/src/utils/libp2p-defaults.browser.ts b/packages/helia/src/utils/libp2p-defaults.browser.ts index 80ce8c1d..b4199d17 100644 --- a/packages/helia/src/utils/libp2p-defaults.browser.ts +++ b/packages/helia/src/utils/libp2p-defaults.browser.ts @@ -64,7 +64,10 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti services: { autoNAT: autoNAT(), dcutr: dcutr(), - delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev'), + delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { + filterAddrs: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], + filterProtocols: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss'] + }), dht: kadDHT({ clientMode: true, validators: { diff --git a/packages/helia/src/utils/libp2p-defaults.ts b/packages/helia/src/utils/libp2p-defaults.ts index 39324d1b..3fc08982 100644 --- a/packages/helia/src/utils/libp2p-defaults.ts +++ b/packages/helia/src/utils/libp2p-defaults.ts @@ -73,7 +73,10 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti services: { autoNAT: autoNAT(), dcutr: dcutr(), - delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev'), + delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { + filterAddrs: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], + filterProtocols: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss'] + }), dht: kadDHT({ validators: { ipns: ipnsValidator