mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 12:27:51 +02:00
bugfix
This commit is contained in:
@ -289,6 +289,7 @@ namespace net {
|
||||
// Save data
|
||||
for (auto iface = addresses; iface; iface = iface->ifa_next) {
|
||||
if (iface->ifa_addr->sa_family != AF_INET) { continue; }
|
||||
if (!iface->ifa_addr || !iface->ifa_netmask) { continue; }
|
||||
InterfaceInfo info;
|
||||
info.address = ntohl(*(uint32_t*)&iface->ifa_addr->sa_data[2]);
|
||||
info.netmask = ntohl(*(uint32_t*)&iface->ifa_netmask->sa_data[2]);
|
||||
|
Reference in New Issue
Block a user