diff --git a/HttpProxy/ProxyListener.cpp b/HttpProxy/ProxyListener.cpp index 077a498..d7a8153 100644 --- a/HttpProxy/ProxyListener.cpp +++ b/HttpProxy/ProxyListener.cpp @@ -26,7 +26,11 @@ void ProxyListener::run(boost::system::error_code &error) { return; } +#if BOOST_VERSION < 108700 m_acceptor.listen(boost::asio::ip::tcp::socket::max_connections, error); +#else + m_acceptor.listen(boost::asio::socket_base::max_listen_connections, error); +#endif if (error) { LOG(error) << error.message(); return;