Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 8af8898

Browse files
kumavisdaviddias
authored andcommitted
do not enable webrtc discovery by default (#65)
* do not enable webrtc discovery by default
1 parent 7fd3dec commit 8af8898

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ class Node extends libp2p {
3737
secio
3838
]
3939
},
40-
discovery: [
41-
webRTCStar.discovery
42-
]
40+
discovery: []
41+
}
42+
43+
if (options.webRTCStar) {
44+
modules.discovery.push(webRTCStar.discovery)
4345
}
4446

4547
if (options.mdns) {

0 commit comments

Comments
 (0)