Skip to content

Commit

Permalink
fix: do not connect to bootstrap nodes in browsers (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel N <[email protected]>
  • Loading branch information
2color and 2color authored Nov 21, 2024
1 parent 6ad440c commit f1bd3d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function getLibp2pConfig (): Libp2pOptions & Required<Pick<Libp2pOptions,
libp2pDefaultOptions.start = false
libp2pDefaultOptions.addresses = { listen: [] }
libp2pDefaultOptions.transports = [webRTCDirect(), webSockets()]
libp2pDefaultOptions.peerDiscovery = [] // Avoid connecting to bootstrap nodes

const services: ServiceFactoryMap<ServiceMap> = {
dcutr: libp2pDefaultOptions.services.dcutr,
Expand Down

0 comments on commit f1bd3d4

Please sign in to comment.