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) {