Use socket.gethostname() instead of socket.getfqdn()

This commit is contained in:
cmdr2
2022-11-30 20:17:18 +05:30
committed by GitHub
parent 1949d8a50c
commit 2979f04c82

View File

@ -307,7 +307,7 @@ def getUIPlugins():
return plugins
def getIPConfig():
ips = socket.gethostbyname_ex(socket.getfqdn())
ips = socket.gethostbyname_ex(socket.gethostname())
ips[2].append(ips[0])
return ips[2]