mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
fix
This commit is contained in:
parent
0565519509
commit
9dd0bd604c
2
util.cpp
2
util.cpp
@ -438,7 +438,7 @@ namespace net
|
|||||||
addr[sz-1] = 0;
|
addr[sz-1] = 0;
|
||||||
socklen_t sl = (ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in));
|
socklen_t sl = (ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in));
|
||||||
// this probably won't screw up (right?)
|
// this probably won't screw up (right?)
|
||||||
inet_ntop(af, cur->ifa_addr, addr, sl);
|
inet_ntop(af, cur->ifa_addr->sa_data, addr, sl);
|
||||||
std::string cur_ifaddr(addr);
|
std::string cur_ifaddr(addr);
|
||||||
freeifaddrs(addrs);
|
freeifaddrs(addrs);
|
||||||
return boost::asio::ip::address::from_string(cur_ifaddr);
|
return boost::asio::ip::address::from_string(cur_ifaddr);
|
||||||
|
Loading…
Reference in New Issue
Block a user