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-08-22 15:46:27 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-08-22 15:46:27 +0300
commit4ccd9667ddaeb97c6aa50bc36311a242c0d02c70 (patch)
tree05994f5fd5156deb905b7b3d7ba8f205dd494062 /index.js
parent958f30a0341ca323c7cef794b00fe38eed845297 (diff)
Include web torrent version in http user agent
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index ad96320..3a404b2 100644
--- a/index.js
+++ b/index.js
@@ -75,7 +75,7 @@ function WebTorrent (opts) {
if (typeof loadIPSet === 'function') {
loadIPSet(opts.blocklist, {
- headers: { 'user-agent': 'WebTorrent (http://webtorrent.io)' }
+ headers: { 'user-agent': 'WebTorrent/' + VERSION + ' (http://webtorrent.io)' }
}, function (err, ipSet) {
if (err) return self.error('Failed to load blocklist: ' + err.message)
self.blocked = ipSet