Skip to content

Commit

Permalink
Combine flags with numeric_host in ip host resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Jun 11, 2019
1 parent c4be672 commit fd5e650
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/asiotap/include/asiotap/types/ip_endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,10 @@ namespace asiotap
template <typename AddressType>
inline void async_resolve(const base_ip_endpoint<AddressType>& ep, typename base_ip_endpoint<AddressType>::resolver& resolver, typename base_ip_endpoint<AddressType>::resolver::protocol_type protocol, typename base_ip_endpoint<AddressType>::resolver::query::flags flags, const std::string& default_service, typename base_ip_endpoint<AddressType>::handler handler)
{
static_cast<void>(flags);
static_cast<void>(protocol);
typename base_ip_endpoint<AddressType>::resolver::query query(ep.address().to_string(), ep.has_port() ? boost::lexical_cast<std::string>(ep.port()) : default_service, boost::asio::ip::resolver_query_base::numeric_host);
typename base_ip_endpoint<AddressType>::resolver::query query(ep.address().to_string(), ep.has_port() ? boost::lexical_cast<std::string>(ep.port()) : default_service, flags | boost::asio::ip::resolver_query_base::numeric_host);

resolver.async_resolve(query, handler);
return;
}

/**
Expand Down

0 comments on commit fd5e650

Please sign in to comment.