put the private flag in the right place. Fixes #303
This commit is contained in:
@@ -705,6 +705,8 @@ namespace libtorrent
|
|||||||
if (!info.find_key("name"))
|
if (!info.find_key("name"))
|
||||||
info["name"] = m_name;
|
info["name"] = m_name;
|
||||||
|
|
||||||
|
if (m_private) info["private"] = 1;
|
||||||
|
|
||||||
if (!m_multifile)
|
if (!m_multifile)
|
||||||
{
|
{
|
||||||
info["length"] = m_files.front().size;
|
info["length"] = m_files.front().size;
|
||||||
@@ -765,8 +767,6 @@ namespace libtorrent
|
|||||||
|
|
||||||
entry dict;
|
entry dict;
|
||||||
|
|
||||||
if (m_private) dict["private"] = 1;
|
|
||||||
|
|
||||||
if (!m_urls.empty())
|
if (!m_urls.empty())
|
||||||
dict["announce"] = m_urls.front().url;
|
dict["announce"] = m_urls.front().url;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user