diff --git a/server/control_server.cpp b/server/control_server.cpp index 03b2db76..7945855b 100644 --- a/server/control_server.cpp +++ b/server/control_server.cpp @@ -161,7 +161,7 @@ void ControlServer::start() { LOG(INFO, LOG_TAG) << "Creating TCP acceptor for address: " << address << ", port: " << tcp_settings_.port << "\n"; acceptor_tcp_.emplace_back(make_unique(boost::asio::make_strand(io_context_.get_executor()), - tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port))); + tcp::endpoint(boost::asio::ip::make_address(address), tcp_settings_.port))); } catch (const boost::system::system_error& e) { @@ -177,7 +177,7 @@ void ControlServer::start() { LOG(INFO, LOG_TAG) << "Creating HTTP acceptor for address: " << address << ", port: " << http_settings_.port << "\n"; acceptor_http_.emplace_back(make_unique(boost::asio::make_strand(io_context_.get_executor()), - tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port))); + tcp::endpoint(boost::asio::ip::make_address(address), http_settings_.port))); } catch (const boost::system::system_error& e) { diff --git a/server/stream_server.cpp b/server/stream_server.cpp index 718e744f..ad2fec2c 100644 --- a/server/stream_server.cpp +++ b/server/stream_server.cpp @@ -231,7 +231,7 @@ void StreamServer::start() { LOG(INFO, LOG_TAG) << "Creating stream acceptor for address: " << address << ", port: " << settings_.stream.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_.stream.port))); + tcp::endpoint(boost::asio::ip::make_address(address), settings_.stream.port))); } catch (const boost::system::system_error& e) { diff --git a/server/streamreader/tcp_stream.cpp b/server/streamreader/tcp_stream.cpp index 1ec68d6b..ed3fd75e 100644 --- a/server/streamreader/tcp_stream.cpp +++ b/server/streamreader/tcp_stream.cpp @@ -64,7 +64,7 @@ TcpStream::TcpStream(PcmStream::Listener* pcmListener, boost::asio::io_context& LOG(INFO, LOG_TAG) << "TcpStream host: " << host_ << ", port: " << port_ << ", is server: " << is_server_ << "\n"; if (is_server_) - acceptor_ = make_unique(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_)); + acceptor_ = make_unique(strand_, tcp::endpoint(boost::asio::ip::make_address(host_), port_)); } @@ -93,7 +93,7 @@ void TcpStream::connect() else { stream_ = make_unique(strand_); - boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_); + boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::make_address(host_), port_); stream_->async_connect(endpoint, [this](const boost::system::error_code& ec) {