diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-10 10:57:35 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-17 14:39:55 +0300 |
commit | 4a759a59e2f127e0cded044dcd647084d1b8c26f (patch) | |
tree | 34dbef166161ac780aa24ec0a25430798d7b3074 /index.js | |
parent | e47b9a2a86db54fc3db7dd00c964d25b8203f71e (diff) |
don't add default trackers when { tracker: false }
When the user sets `{ tracker: false }` on the WebTorrent client, don’t
add trackers to the torrent by default.
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -206,6 +206,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) { // When seeding from filesystem, initialize store from that path (avoids a copy) if (typeof input === 'string') opts.path = path.dirname(input) if (!opts.createdBy) opts.createdBy = 'WebTorrent/' + VERSION_STR + if (!self.tracker) opts.announce = [] var streams var torrent = self.add(undefined, opts, function (torrent) { |