mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 17:57:06 +02:00
fix: use hostname.local
This commit is contained in:
parent
fc7f1d7815
commit
89fcfcb5d6
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user