update boost 1.87

This commit is contained in:
amass 2024-12-12 21:15:06 +08:00
parent 71056ba1b3
commit 9af561dc10

View File

@ -26,7 +26,11 @@ void ProxyListener::run(boost::system::error_code &error) {
return; return;
} }
#if BOOST_VERSION < 108700
m_acceptor.listen(boost::asio::ip::tcp::socket::max_connections, error); 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) { if (error) {
LOG(error) << error.message(); LOG(error) << error.message();
return; return;