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.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index 4a62766..0ccc4bb 100644
--- a/index.js
+++ b/index.js
@@ -79,7 +79,9 @@ function WebTorrent (opts) {
debug('new webtorrent (peerId %s, nodeId %s)', self.peerIdHex, self.nodeIdHex)
if (typeof loadIPSet === 'function') {
- loadIPSet(opts.blocklist, function (err, ipSet) {
+ loadIPSet(opts.blocklist, {
+ headers: { 'user-agent': 'WebTorrent (http://webtorrent.io)' }
+ }, function (err, ipSet) {
self.blocked = ipSet
ready()
})