diff --git a/src/http_tracker_connection.cpp b/src/http_tracker_connection.cpp index db28560f7..3a8a2e2f4 100755 --- a/src/http_tracker_connection.cpp +++ b/src/http_tracker_connection.cpp @@ -375,7 +375,7 @@ namespace libtorrent } #endif - tcp::resolver::query q(*connect_to_host, 0); + tcp::resolver::query q(*connect_to_host, "0"); m_name_lookup.async_resolve(q , boost::bind(&http_tracker_connection::name_lookup, self(), _1, _2)); set_timeout(m_settings.tracker_completion_timeout diff --git a/src/torrent.cpp b/src/torrent.cpp index 9bc90bd72..8df4b00e4 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -955,7 +955,7 @@ namespace libtorrent = parse_url_components(url); m_resolving_web_seeds.insert(url); - tcp::resolver::query q(hostname, 0); + tcp::resolver::query q(hostname, "0"); m_host_resolver.async_resolve(q, bind(&torrent::on_name_lookup , shared_from_this(), _1, _2, port, url)); diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index 0ca24ae08..df7cee3a1 100755 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -90,7 +90,7 @@ namespace libtorrent , m_attempts(0) { m_socket.reset(new datagram_socket(d)); - tcp::resolver::query q(hostname, 0); + tcp::resolver::query q(hostname, "0"); m_name_lookup.async_resolve(q , boost::bind(&udp_tracker_connection::name_lookup, self(), _1, _2)); set_timeout(m_settings.tracker_completion_timeout