fix: use hostname.local

This commit is contained in:
aclist 2026-05-19 18:26:09 +09:00
parent fc7f1d7815
commit 89fcfcb5d6

View File

@ -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