mirror of
https://github.com/aclist/dztui.git
synced 2026-10-26 20:52:44 +01:00
fix: use hostname.local
This commit is contained in:
1 parent
fc7f1d7815
commit
89fcfcb5d6
1 file changed
+1
-1
@@ -106,7 +106,7 @@ class A2SInfo:
|
||||
|
||||
def get_netmask() -> str:
|
||||
hostname = os.uname()[1]
|
||||
i = socket.gethostbyname(hostname)
|
||||
i = socket.gethostbyname(f"{hostname}.local")
|
||||
netmask = i.rsplit(".", 1)[0]
|
||||
return netmask
|
||||
|
||||
|
||||
Reference in new issue
Block a user