diff --git a/libs/asiotap/include/asiotap/types/ip_endpoint.hpp b/libs/asiotap/include/asiotap/types/ip_endpoint.hpp index de63aded..ae2394b0 100644 --- a/libs/asiotap/include/asiotap/types/ip_endpoint.hpp +++ b/libs/asiotap/include/asiotap/types/ip_endpoint.hpp @@ -226,12 +226,10 @@ namespace asiotap template inline void async_resolve(const base_ip_endpoint& ep, typename base_ip_endpoint::resolver& resolver, typename base_ip_endpoint::resolver::protocol_type protocol, typename base_ip_endpoint::resolver::query::flags flags, const std::string& default_service, typename base_ip_endpoint::handler handler) { - static_cast(flags); static_cast(protocol); - typename base_ip_endpoint::resolver::query query(ep.address().to_string(), ep.has_port() ? boost::lexical_cast(ep.port()) : default_service, boost::asio::ip::resolver_query_base::numeric_host); - + typename base_ip_endpoint::resolver::query query(ep.address().to_string(), ep.has_port() ? boost::lexical_cast(ep.port()) : default_service, flags | boost::asio::ip::resolver_query_base::numeric_host); + resolver.async_resolve(query, handler); - return; } /**