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:
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: {