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"))
|
||||
info["name"] = m_name;
|
||||
|
||||
if (m_private) info["private"] = 1;
|
||||
|
||||
if (!m_multifile)
|
||||
{
|
||||
info["length"] = m_files.front().size;
|
||||
@@ -765,8 +767,6 @@ namespace libtorrent
|
||||
|
||||
entry dict;
|
||||
|
||||
if (m_private) dict["private"] = 1;
|
||||
|
||||
if (!m_urls.empty())
|
||||
dict["announce"] = m_urls.front().url;
|
||||
|
||||
|
Reference in New Issue
Block a user