From b36c4f354b8cba5e5144f52dfa52b663e676be07 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 4 Nov 2020 23:01:23 +0000 Subject: [PATCH] p2p: make this work with boost <= 1.65 (pffff) --- src/p2p/net_node.inl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 43410dcbe..725e2a22d 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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();