From ec462afde6b172e6c7fc66b0fc81380e86a9e4a0 Mon Sep 17 00:00:00 2001 From: Vxrtrauter <101264710+Vxrtrauter@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:00:00 +0100 Subject: [PATCH] Simplify boolean checks in network interface detection --- src/core/network/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/network/interface.py b/src/core/network/interface.py index 0307ea2..1a09eea 100644 --- a/src/core/network/interface.py +++ b/src/core/network/interface.py @@ -19,7 +19,7 @@ def get_active_interfaces(): for addr in addr_list: if addr.family == 2: # ipv4 ipv4 = addr.address - if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up == True: + if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up: active.append(interface) consoleLog(f"Found Active: {interface}") @@ -33,7 +33,7 @@ def list_interfaces() -> None: for addr in addr_list: if addr.family == 2: # ipv4 ipv4 = addr.address - if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up == True: + if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up: status = "ACTIVE" else: status = "INACTIVE"