diff --git a/src/enum_net.cpp b/src/enum_net.cpp index cd0cace76..862684915 100644 --- a/src/enum_net.cpp +++ b/src/enum_net.cpp @@ -693,13 +693,8 @@ namespace libtorrent address get_default_gateway(io_service& ios, error_code& ec) { std::vector ret = enum_routes(ios, ec); -#if defined TORRENT_WINDOWS || defined TORRENT_MINGW - std::vector::iterator i = std::find_if(ret.begin(), ret.end() - , boost::bind(&is_loopback, boost::bind(&ip_route::destination, _1))); -#else std::vector::iterator i = std::find_if(ret.begin(), ret.end() , boost::bind(&ip_route::destination, _1) == address()); -#endif if (i == ret.end()) return address(); return i->gateway; }