p2p: make this work with boost <= 1.65 (pffff)

remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
moneromooo-monero 4 years ago
parent 1ba4c8dbc2
commit b36c4f354b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -1501,7 +1501,11 @@ namespace nodetool
if (actual_ip.is_v4_mapped())
{
boost::asio::ip::address_v4 v4ip = make_address_v4_from_v6(actual_ip);
#if BOOST_VERSION >= 106600
return epee::net_utils::ipv4_network_address(v4ip.to_uint(), 0).host_str();
#else
return epee::net_utils::ipv4_network_address(v4ip.to_ulong(), 0).host_str();
#endif
}
}
return address.host_str();

Loading…
Cancel
Save