utils: disable fcntl in ogClient for Windows

Add conditional import for fcntl as it is only supported for
Linux and causes ogClient for Windows fail to start.
master
Alejandro Sirgo Rica 2024-11-12 09:34:53 +01:00
parent 90a9ba9543
commit d7658f03ab
1 changed files with 4 additions and 1 deletions

View File

@ -7,12 +7,15 @@
# (at your option) any later version.
import array
import fcntl
import sys
import socket
import struct
import psutil
import logging
if sys.platform != "win32":
import fcntl
def is_ethernet(interface):
SIOCGIFHWADDR = 0x8927
ARPHRD_ETHER = 1