put the private flag in the right place. Fixes #303
This commit is contained in:
parent
4eeb15c1df
commit
cc5dc24ca1
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue