diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() }) |