diff --git a/include/libtorrent/create_torrent.hpp b/include/libtorrent/create_torrent.hpp index 32c7a41f2..573b550a4 100644 --- a/include/libtorrent/create_torrent.hpp +++ b/include/libtorrent/create_torrent.hpp @@ -78,10 +78,12 @@ namespace libtorrent void add_url_seed(std::string const& url); void add_node(std::pair const& node); void add_tracker(std::string const& url, int tier = 0); + void set_priv(bool p) const { return m_private = p; } int num_pieces() const { return m_files.num_pieces(); } int piece_length() const { return m_files.piece_length(); } int piece_size(int i) const { return m_files.piece_size(i); } + bool priv() const { return m_private; } private: