1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 20:44:39 +00:00
This commit is contained in:
Jeff Becker 2016-06-29 15:48:02 -04:00
parent c70d2ad6fa
commit 3f50776062
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -437,8 +437,7 @@ namespace net
char * addr = new char[sz];
addr[sz-1] = 0;
// this probably won't screw up (right?)
inet_ntop(af, cur->ifa_addr->sa_data, addr, sz);
std::string cur_ifaddr(addr);
std::string cur_ifaddr = inet_ntop(af, cur->ifa_addr->sa_data, addr, sz);
freeifaddrs(addrs);
return boost::asio::ip::address::from_string(cur_ifaddr);
}