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:
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 9c8fa32..a78f1ab 100644
--- a/index.js
+++ b/index.js
@@ -85,6 +85,7 @@ function WebTorrent (opts) {
loadIPSet(opts.blocklist, {
headers: { 'user-agent': 'WebTorrent (http://webtorrent.io)' }
}, function (err, ipSet) {
+ if (err) return self.error('failed to load blocklist: ' + err.message)
self.blocked = ipSet
ready()
})