diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-05-04 03:31:50 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-05-04 03:31:50 +0300 |
commit | b91f64467d5b5e75ffc4e8a2e6cbef95b5f959e3 (patch) | |
tree | eb70b88adc2bbd159139d9c2200a6fe9d4891ce6 /index.js | |
parent | 92c65cedd7924d58e324fb23e2dfee3d88553628 (diff) |
Remove `wrtc` dependency #303
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) |