Explorar el Código

network: use explicit bool conversions in GetAvailableNetworkInterfaces

Sönke Holz hace 5 años
padre
commit
771de32af1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/network/network_interface.cpp

+ 1 - 1
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;
         }