Skip to content

Commit

Permalink
fixed build with boost 1.87
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Dec 15, 2024
1 parent e76d09e commit bdc5eaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daemon/UPnP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ namespace transport

// UPnP discovered
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
PortMapping ();
}
Expand Down
4 changes: 2 additions & 2 deletions libi2pd/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ namespace net
#ifdef _WIN32
LogPrint(eLogError, "NetIface: Cannot get address by interface name, not implemented on WIN32");
if (ipv6)
return boost::asio::ip::address::from_string("::1");
return boost::asio::ip::make_address("::1");
else
return boost::asio::ip::address::from_string("127.0.0.1");
return boost::asio::ip::make_address("127.0.0.1");
#else
int af = (ipv6 ? AF_INET6 : AF_INET);
ifaddrs *addrs;
Expand Down

0 comments on commit bdc5eaa

Please sign in to comment.