diff options
-rw-r--r-- | src/utils/net.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/net.py b/src/utils/net.py index e842c0f..091bd26 100644 --- a/src/utils/net.py +++ b/src/utils/net.py @@ -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 |