merged udp tracker fix from RC_0_16

This commit is contained in:
Arvid Norberg 2012-10-17 15:54:38 +00:00
parent e4f15a2223
commit 7f28c05161
1 changed files with 2 additions and 1 deletions

View File

@ -658,7 +658,8 @@ namespace libtorrent
// ip address
address_v4 announce_ip;
if (!settings.announce_ip.empty())
if (!m_ses.settings().anonymous_mode
&& !settings.announce_ip.empty())
{
error_code ec;
address ip = address::from_string(settings.announce_ip.c_str(), ec);