From b91f64467d5b5e75ffc4e8a2e6cbef95b5f959e3 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 3 May 2015 17:31:50 -0700 Subject: Remove `wrtc` dependency #303 --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 7c3dbcc..2fb18fe 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,9 @@ function WebTorrent (opts) { self.destroyed = false self.torrentPort = opts.torrentPort || 0 self.tracker = opts.tracker !== undefined ? opts.tracker : true - self.rtcConfig = opts.rtcConfig + + self._rtcConfig = opts.rtcConfig + self._wrtc = opts.wrtc self.torrents = [] @@ -72,7 +74,6 @@ function WebTorrent (opts) { : opts.nodeId self.nodeIdHex = self.nodeId.toString('hex') - // TODO: implement webtorrent-dht if (opts.dht !== false && typeof DHT === 'function' /* browser exclude */) { // use a single DHT instance for all torrents, so the routing table can be reused self.dht = new DHT(extend({ nodeId: self.nodeId }, opts.dht)) -- cgit v1.2.3