mirror of
https://github.com/monero-project/monero.git
synced 2026-01-12 13:05:22 -08:00
Fix build with boost ASIO 1.87. Support boost 1.66+
This commit is contained in:
@@ -664,7 +664,7 @@ namespace tools
|
||||
}
|
||||
|
||||
boost::system::error_code ec;
|
||||
const auto parsed_ip = boost::asio::ip::address::from_string(u_c.host, ec);
|
||||
const auto parsed_ip = boost::asio::ip::make_address(u_c.host, ec);
|
||||
if (ec) {
|
||||
MDEBUG("Failed to parse '" << address << "' as IP address: " << ec.message() << ". Considering it not local");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user