From 0d9ee4c93a3edb2733f6f46b369070ffc175ac5d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 13 May 2016 16:47:09 -0700 Subject: [PATCH] Allow {wrtc: false} to disable WebRTC support --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 010f8c7..1bc652f 100644 --- a/client.js +++ b/client.js @@ -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 ]