Skip to content

Commit 9384cca

Browse files
committed
fix: Remove accidental change for boost 1.87
1 parent 65b2871 commit 9384cca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/server/server.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class Server
5252
const auto port_string = std::to_string(port);
5353

5454
boost::asio::ip::tcp::resolver resolver(io_context);
55-
boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(address, port_string).begin();
55+
boost::asio::ip::tcp::resolver::query query(address, port_string);
56+
boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(query);
5657

5758
acceptor.open(endpoint.protocol());
5859
#ifdef SO_REUSEPORT

0 commit comments

Comments
 (0)