torrent-discovery
Advanced tools
Comparing version 2.3.1 to 2.3.2
10
index.js
@@ -24,3 +24,4 @@ module.exports = Discovery | ||
port: 0, // torrent port | ||
tracker: true | ||
tracker: true, | ||
wrtc: null | ||
}, opts) | ||
@@ -33,6 +34,2 @@ | ||
if (!process.browser && !self.port) throw new Error('port required') | ||
if (process.browser && (!self.announce || self.announce.length === 0)) { | ||
// If no trackers specified in browser, use default so WebTorrent Just Works(TM). | ||
self.announce = [ 'wss://tracker.webtorrent.io' ] | ||
} | ||
@@ -96,3 +93,4 @@ if (self.dht) self._createDHT(self.dhtPort) | ||
var trackerOpts = { | ||
rtcConfig: self.rtcConfig | ||
rtcConfig: self.rtcConfig, | ||
wrtc: self.wrtc | ||
} | ||
@@ -99,0 +97,0 @@ |
{ | ||
"name": "torrent-discovery", | ||
"description": "Discover BitTorrent and WebTorrent peers", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"author": { | ||
@@ -27,3 +27,3 @@ "name": "Feross Aboukhadijeh", | ||
"standard": "^3.1.2", | ||
"tape": "^3.5.0" | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "homepage": "http://webtorrent.io", |
@@ -54,3 +54,4 @@ # torrent-discovery [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] | ||
tracker: true, // use trackers? | ||
rtcConfig: {} // RTCPeerConnection config object (only used in browser) | ||
rtcConfig: {}, // RTCPeerConnection config object (only used in browser) | ||
wrtc: {} // custom webrtc implementation, mainly useful in node to specify in the [wrtc](https://npmjs.com/package/wrtc) package | ||
} | ||
@@ -57,0 +58,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102
10567
162