diff options
author | DC <dcposch@dcpos.ch> | 2016-09-15 08:18:05 +0300 |
---|---|---|
committer | DC <dcposch@dcpos.ch> | 2016-09-17 13:13:17 +0300 |
commit | 5bdc78c49c898bf0e35cdf8c3845a4e9017c9c23 (patch) | |
tree | 06eb3ca69f58f83296e95b66a63d4288de40ce21 /lib | |
parent | 15ed59a0d2c9d32598ab4c98706e6fd8fa200843 (diff) |
Option to disable BEP19 web seeds
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 78c6375..579f3da 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -471,9 +471,11 @@ Torrent.prototype._onMetadata = function (metadata) { self.metadata = self.torrentFile // add web seed urls (BEP19) - self.urlList.forEach(function (url) { - self.addWebSeed(url) - }) + if (self.client.enableWebSeeds) { + self.urlList.forEach(function (url) { + self.addWebSeed(url) + }) + } // start off selecting the entire torrent with low priority if (self.pieces.length !== 0) { |