We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b2871 commit 9384ccaCopy full SHA for 9384cca
include/server/server.hpp
@@ -52,7 +52,8 @@ class Server
52
const auto port_string = std::to_string(port);
53
54
boost::asio::ip::tcp::resolver resolver(io_context);
55
- boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(address, port_string).begin();
+ boost::asio::ip::tcp::resolver::query query(address, port_string);
56
+ boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(query);
57
58
acceptor.open(endpoint.protocol());
59
#ifdef SO_REUSEPORT
0 commit comments