mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
Allow {wrtc: false} to disable WebRTC support
This commit is contained in:
parent
808a9201cb
commit
0d9ee4c93a
@ -64,7 +64,7 @@ function Client (opts) {
|
||||
|
||||
debug('new client %s', self.infoHash)
|
||||
|
||||
var webrtcSupport = !!self._wrtc || typeof window !== 'undefined'
|
||||
var webrtcSupport = self._wrtc !== false && (!!self._wrtc || typeof window !== 'undefined')
|
||||
|
||||
var announce = (typeof opts.announce === 'string')
|
||||
? [ opts.announce ]
|
||||
|
Loading…
Reference in New Issue
Block a user