Merge pull request #1411 from webtorrent/is-private

If torrent is not private, leave private flag unset
This commit is contained in:
Diego Rodríguez Baquero
2018-05-25 12:15:45 -05:00
committed by GitHub

View File

@@ -191,9 +191,14 @@ function handleSubmit () {
path: this.state.basePath,
files: this.state.files,
announce: announceList,
private: this.state.isPrivate,
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)
}