mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
fix feature not introduced until boost 1.66
This commit is contained in:
parent
4947f3bdba
commit
30779de39d
@ -39,7 +39,7 @@ namespace epee
|
|||||||
inline
|
inline
|
||||||
bool is_ipv6_local(const std::string& ip)
|
bool is_ipv6_local(const std::string& ip)
|
||||||
{
|
{
|
||||||
auto addr = boost::asio::ip::make_address_v6(ip);
|
auto addr = boost::asio::ip::address_v6::from_string(ip);
|
||||||
|
|
||||||
// ipv6 link-local unicast addresses are fe80::/10
|
// ipv6 link-local unicast addresses are fe80::/10
|
||||||
bool is_link_local = addr.is_link_local();
|
bool is_link_local = addr.is_link_local();
|
||||||
|
@ -76,7 +76,7 @@ namespace net
|
|||||||
return i2p_address::make(address, default_port);
|
return i2p_address::make(address, default_port);
|
||||||
|
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
boost::asio::ip::address_v6 v6 = boost::asio::ip::make_address_v6(host_str, ec);
|
boost::asio::ip::address_v6 v6 = boost::asio::ip::address_v6::from_string(host_str, ec);
|
||||||
ipv6 = !ec;
|
ipv6 = !ec;
|
||||||
|
|
||||||
std::uint16_t port = default_port;
|
std::uint16_t port = default_port;
|
||||||
|
Loading…
Reference in New Issue
Block a user