From cc5dc24ca1275710fe355ba199a08b697d2a95b5 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 9 Apr 2008 08:10:44 +0000 Subject: [PATCH] put the private flag in the right place. Fixes #303 --- src/torrent_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 0dfce1d1b..f1d3e50b2 100755 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -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;