Browse Source

network: use explicit bool conversions in GetAvailableNetworkInterfaces

nce_cpp
Sönke Holz 4 years ago
parent
commit
a7e514f3db
  1. 2
      src/core/network/network_interface.cpp

2
src/core/network/network_interface.cpp

@ -92,7 +92,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
continue;
}
if (!(ifa->ifa_flags & IFF_UP) || ifa->ifa_flags & IFF_LOOPBACK) {
if ((ifa->ifa_flags & IFF_UP) == 0 || (ifa->ifa_flags & IFF_LOOPBACK) != 0) {
continue;
}

Loading…
Cancel
Save