Explorar o código

use psutil for mac detection

Alex Cheema hai 9 meses
pai
achega
f4619d467b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exo/helpers.py

+ 1 - 1
exo/helpers.py

@@ -247,7 +247,7 @@ def get_interface_priority_and_type(ifname: str) -> Tuple[int, str]:
     return (6, "Loopback")
 
   # On macOS, use networksetup to accurately identify interface types
-  if platform.system() == 'Darwin':
+  if psutil.MACOS:
     try:
       import subprocess
       result = subprocess.run(['networksetup', '-listallhardwareports'], capture_output=True, text=True)