diff --git a/boost/network/protocol/http/policies/async_resolver.hpp b/boost/network/protocol/http/policies/async_resolver.hpp index a8fb5b052..61a710147 100644 --- a/boost/network/protocol/http/policies/async_resolver.hpp +++ b/boost/network/protocol/http/policies/async_resolver.hpp @@ -53,7 +53,7 @@ struct async_resolver : boost::enable_shared_from_this > { } } - typename resolver_type::query q(resolver_type::protocol_type::v4(), host, + typename resolver_type::query q(host, lexical_cast(port)); resolver_.async_resolve(q, resolver_strand_->wrap(boost::bind( &async_resolver::handle_resolve,