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
path: root/lib
diff options
context:
space:
mode:
authorKayleePop <34007889+KayleePop@users.noreply.github.com>2018-08-26 22:28:27 +0300
committerKayleePop <34007889+KayleePop@users.noreply.github.com>2018-08-27 21:45:26 +0300
commit124fc9fe680f9d13e38b48b5d4ae8cfc3fce0a2a (patch)
tree579797242d530e797c055369cdf025b6b466176b /lib
parent6a4beb5f8db076212af1e52904eb7b1102f1b903 (diff)
Pass a torrent's infohash to custom chunk stores as the `name` option
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 5f86228..0229e32 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -459,7 +459,8 @@ class Torrent extends EventEmitter {
length: file.length,
offset: file.offset
})),
- length: this.length
+ length: this.length,
+ name: this.infoHash
})
)