Skip to content

Commit

Permalink
fix: filter options
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Oct 16, 2024
1 parent d22a317 commit f904041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f904041

Please sign in to comment.