Skip to content

Commit

Permalink
Fix compilation with boost v1.87.0
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Dec 19, 2024
1 parent 1df686f commit 6ada939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/control_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void ControlServer::start()
{
LOG(INFO, LOG_TAG) << "Creating TCP acceptor for address: " << address << ", port: " << settings_.tcp.port << "\n";
acceptor_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.tcp.port)));
tcp::endpoint(boost::asio::ip::make_address(address), settings_.tcp.port)));
}
catch (const boost::system::system_error& e)
{
Expand All @@ -196,7 +196,7 @@ void ControlServer::start()
{
LOG(INFO, LOG_TAG) << "Creating HTTP acceptor for address: " << address << ", port: " << settings_.http.port << "\n";
acceptor_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.http.port)));
tcp::endpoint(boost::asio::ip::make_address(address), settings_.http.port)));
}
catch (const boost::system::system_error& e)
{
Expand All @@ -213,7 +213,7 @@ void ControlServer::start()
{
LOG(INFO, LOG_TAG) << "Creating HTTPS acceptor for address: " << address << ", port: " << settings_.http.ssl_port << "\n";
acceptor_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.http.ssl_port)));
tcp::endpoint(boost::asio::ip::make_address(address), settings_.http.ssl_port)));
}
catch (const boost::system::system_error& e)
{
Expand Down

0 comments on commit 6ada939

Please sign in to comment.