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:
authorKaylee <34007889+KayleePop@users.noreply.github.com>2018-05-18 23:48:40 +0300
committerKayleePop <34007889+KayleePop@users.noreply.github.com>2018-08-29 21:17:52 +0300
commit5883e59167474b6572cf53095f31778d70f24075 (patch)
tree9caf0e82b2b7fa8a7ccf9f49542a8c868395225b /index.js
parentc49ae22d52417e976533e364fbf98ce8c41df384 (diff)
Don't verify files in client.seed()
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index 887c473..3b5e6f7 100644
--- a/index.js
+++ b/index.js
@@ -257,6 +257,9 @@ class WebTorrent extends EventEmitter {
this._debug('seed')
opts = opts ? Object.assign({}, opts) : {}
+ // no need to verify the hashes we create
+ opts.skipVerify = true
+
const isFilePath = typeof input === 'string'
// When seeding from fs path, initialize store from that path to avoid a copy