From 7e64338264985bd9e85430952a0c38f7400df4db Mon Sep 17 00:00:00 2001 From: Wojciech Kapsa Date: Mon, 17 Apr 2023 12:43:05 +0200 Subject: [PATCH] default flags have been added to boost tcp::resolver --- websocketpp/transport/asio/endpoint.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocketpp/transport/asio/endpoint.hpp b/websocketpp/transport/asio/endpoint.hpp index 94509adb3..44ea5a531 100644 --- a/websocketpp/transport/asio/endpoint.hpp +++ b/websocketpp/transport/asio/endpoint.hpp @@ -558,7 +558,7 @@ class endpoint : public config::socket_type { { using lib::asio::ip::tcp; tcp::resolver r(*m_io_service); - tcp::resolver::query query(host, service); + tcp::resolver::query query(host, service, lib::asio::ip::resolver_query_base::flags()); tcp::resolver::iterator endpoint_iterator = r.resolve(query); tcp::resolver::iterator end; if (endpoint_iterator == end) { @@ -883,7 +883,7 @@ class endpoint : public config::socket_type { port = pu->get_port_str(); } - tcp::resolver::query query(host,port); + tcp::resolver::query query(host,port,lib::asio::ip::resolver_query_base::flags()); if (m_alog->static_test(log::alevel::devel)) { m_alog->write(log::alevel::devel,