mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
ugh
This commit is contained in:
parent
c70d2ad6fa
commit
3f50776062
3
util.cpp
3
util.cpp
@ -437,8 +437,7 @@ namespace net
|
|||||||
char * addr = new char[sz];
|
char * addr = new char[sz];
|
||||||
addr[sz-1] = 0;
|
addr[sz-1] = 0;
|
||||||
// this probably won't screw up (right?)
|
// this probably won't screw up (right?)
|
||||||
inet_ntop(af, cur->ifa_addr->sa_data, addr, sz);
|
std::string cur_ifaddr = inet_ntop(af, cur->ifa_addr->sa_data, addr, sz);
|
||||||
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