From 6ada939adf5c4f7e43d0fbe6ea45492b9564cb8d Mon Sep 17 00:00:00 2001 From: badaix Date: Thu, 19 Dec 2024 22:53:49 +0100 Subject: [PATCH] Fix compilation with boost v1.87.0 --- server/control_server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/control_server.cpp b/server/control_server.cpp index 9d051e68..c60808c9 100644 --- a/server/control_server.cpp +++ b/server/control_server.cpp @@ -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(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) { @@ -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(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) { @@ -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(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) {