Merge pull request #1411 from webtorrent/is-private
If torrent is not private, leave private flag unset
This commit is contained in:
@@ -191,9 +191,14 @@ function handleSubmit () {
|
|||||||
path: this.state.basePath,
|
path: this.state.basePath,
|
||||||
files: this.state.files,
|
files: this.state.files,
|
||||||
announce: announceList,
|
announce: announceList,
|
||||||
private: this.state.isPrivate,
|
|
||||||
comment: this.state.comment.trim()
|
comment: this.state.comment.trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If torrent is not private, leave private flag unset. This ensures that
|
||||||
|
// the torrent info hash will match the result generated by other tools,
|
||||||
|
// including webtorrent-cli.
|
||||||
|
if (this.state.isPrivate) options.private = true
|
||||||
|
|
||||||
dispatch('createTorrent', options)
|
dispatch('createTorrent', options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user