actually look up hosts

This commit is contained in:
CEF Server 2024-07-29 04:14:48 +00:00
parent 4aa94950c3
commit 215ffced7c

View file

@ -101,5 +101,5 @@ ergo = ErgoClient()
privilegedIps = set()
for host in config.PRIVILEGED_HOSTS:
for addr in [x[-1][0] for x in socket.getaddrinfo("localhost", 0)]:
for addr in [x[-1][0] for x in socket.getaddrinfo(host, 0)]:
privilegedIps.add(addr)