Skip to content

Commit 0d9ee4c

Browse files
committed
Allow {wrtc: false} to disable WebRTC support
1 parent 808a920 commit 0d9ee4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Client (opts) {
6464

6565
debug('new client %s', self.infoHash)
6666

67-
var webrtcSupport = !!self._wrtc || typeof window !== 'undefined'
67+
var webrtcSupport = self._wrtc !== false && (!!self._wrtc || typeof window !== 'undefined')
6868

6969
var announce = (typeof opts.announce === 'string')
7070
? [ opts.announce ]

0 commit comments

Comments
 (0)