Fix hostname resolution

master
kaiyou 6 years ago
parent c20a502695
commit baa5a8a4e0

@ -81,7 +81,7 @@ class ConfigManager(dict):
def resolve_host(self): def resolve_host(self):
optional = [item for item in self.OPTIONAL_HOSTS if item in self.config] optional = [item for item in self.OPTIONAL_HOSTS if item in self.config]
for item in self.HOSTS + optional: for item in list(self.HOSTS) + optional:
host = 'HOST_' + item host = 'HOST_' + item
self.config[host] = system.resolve_address(self.config[host]) self.config[host] = system.resolve_address(self.config[host])

Loading…
Cancel
Save