Skip to content

Commit

Permalink
Fix compilation with upcoming Boost 1.87.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Nov 20, 2024
1 parent 3614af7 commit e9472c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/server/server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class Server
const auto port_string = std::to_string(port);

boost::asio::ip::tcp::resolver resolver(io_context);
boost::asio::ip::tcp::resolver::query query(address, port_string);
boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(query);
boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(address, port_string).begin();

acceptor.open(endpoint.protocol());
#ifdef SO_REUSEPORT
Expand Down

0 comments on commit e9472c3

Please sign in to comment.