diff --git a/src/renderer/pages/create-torrent-page.js b/src/renderer/pages/create-torrent-page.js index 13d14d94..fe532a59 100644 --- a/src/renderer/pages/create-torrent-page.js +++ b/src/renderer/pages/create-torrent-page.js @@ -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) }