Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDC <dcposch@dcpos.ch>2016-09-15 08:18:05 +0300
committerDC <dcposch@dcpos.ch>2016-09-17 13:13:17 +0300
commit5bdc78c49c898bf0e35cdf8c3845a4e9017c9c23 (patch)
tree06eb3ca69f58f83296e95b66a63d4288de40ce21 /index.js
parent15ed59a0d2c9d32598ab4c98706e6fd8fa200843 (diff)
Option to disable BEP19 web seeds
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index c066288..0c59ff9 100644
--- a/index.js
+++ b/index.js
@@ -139,6 +139,9 @@ function WebTorrent (opts) {
self.dht = false
}
+ // Enable or disable BEP19 (Web Seeds). Enabled by default:
+ self.enableWebSeeds = opts.webSeeds !== false
+
if (typeof loadIPSet === 'function' && opts.blocklist != null) {
loadIPSet(opts.blocklist, {
headers: {