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:
authorFeross Aboukhadijeh <feross@feross.org>2015-06-11 04:41:28 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-06-11 04:43:45 +0300
commit3c816df86c233b33bb5b6bfcfd6bb14411f36a51 (patch)
treea0fc9054ef14ae57116e6aba44c972d71c7c7be8 /index.js
parent989920f4239006d78cf36f3f64ca64f599a23391 (diff)
add "created by" field to torrents
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 61995e2..4cd8e0c 100644
--- a/index.js
+++ b/index.js
@@ -201,6 +201,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
}
if (!opts) opts = {}
opts.noVerify = true
+ opts.createdBy = 'WebTorrent/' + require('./package.json').version
var streams
var torrent = self.add(undefined, opts, function (torrent) {