mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
p2p: make this work with boost <= 1.65 (pffff)
This commit is contained in:
parent
ffdf1fb1de
commit
67f2bec2df
1 changed files with 4 additions and 0 deletions
|
@ -1518,7 +1518,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…
Reference in a new issue