diff options
author | Diego RodrÃguez Baquero <diego@mothership.com> | 2021-07-25 03:27:28 +0300 |
---|---|---|
committer | Diego RodrÃguez Baquero <diego@mothership.com> | 2021-07-25 03:27:28 +0300 |
commit | c0a07fbbbc3fb39dfeddf76383f22710b8ee1d54 (patch) | |
tree | 1922f457edaaa5201b9ded4c2d040eb9e0a3f36f | |
parent | 5de2148eb73762ab85596d17936ea90f1e1d9d5b (diff) |
fix: log error when failing to load blocklist ip set
-rw-r--r-- | docs/api.md | 2 | ||||
-rw-r--r-- | index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/api.md b/docs/api.md index 321d50f..cfc7723 100644 --- a/docs/api.md +++ b/docs/api.md @@ -61,7 +61,7 @@ If `opts` is specified, then the default options (shown below) will be overridde lsd: Boolean, // Enable BEP14 local service discovery (default=true) webSeeds: Boolean, // Enable BEP19 web seeds (default=true) utp: Boolean, // Enable BEP29 uTorrent transport protocol (default=true) - blocklist: Array|String, // List of IP's to block + blocklist: Array|String, // List of IP's to block utp: Boolean, // Enable BEP29 uTorrent transport protocol (default=true) downloadLimit: Number, // Max download speed (bytes/sec) over all torrents (default=-1) uploadLimit: Number, // Max upload speed (bytes/sec) over all torrents (default=-1) @@ -143,7 +143,7 @@ class WebTorrent extends EventEmitter { 'user-agent': `WebTorrent/${VERSION} (https://webtorrent.io)` } }, (err, ipSet) => { - if (err) return this.error(`Failed to load blocklist: ${err.message}`) + if (err) return console.error(`Failed to load blocklist: ${err.message}`) this.blocked = ipSet ready() }) |