mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
fixed build with boost 1.87
This commit is contained in:
parent
e76d09e1a1
commit
bdc5eaa824
|
@ -150,7 +150,7 @@ namespace transport
|
||||||
|
|
||||||
// UPnP discovered
|
// UPnP discovered
|
||||||
LogPrint (eLogDebug, "UPnP: ExternalIPAddress is ", m_externalIPAddress);
|
LogPrint (eLogDebug, "UPnP: ExternalIPAddress is ", m_externalIPAddress);
|
||||||
i2p::context.UpdateAddress (boost::asio::ip::address::from_string (m_externalIPAddress));
|
i2p::context.UpdateAddress (boost::asio::ip::make_address (m_externalIPAddress));
|
||||||
// port mapping
|
// port mapping
|
||||||
PortMapping ();
|
PortMapping ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -454,9 +454,9 @@ namespace net
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LogPrint(eLogError, "NetIface: Cannot get address by interface name, not implemented on WIN32");
|
LogPrint(eLogError, "NetIface: Cannot get address by interface name, not implemented on WIN32");
|
||||||
if (ipv6)
|
if (ipv6)
|
||||||
return boost::asio::ip::address::from_string("::1");
|
return boost::asio::ip::make_address("::1");
|
||||||
else
|
else
|
||||||
return boost::asio::ip::address::from_string("127.0.0.1");
|
return boost::asio::ip::make_address("127.0.0.1");
|
||||||
#else
|
#else
|
||||||
int af = (ipv6 ? AF_INET6 : AF_INET);
|
int af = (ipv6 ? AF_INET6 : AF_INET);
|
||||||
ifaddrs *addrs;
|
ifaddrs *addrs;
|
||||||
|
|
Loading…
Reference in a new issue