Skip to content
Snippets Groups Projects
Commit a64b97c2 authored by Hang's avatar Hang
Browse files

fast push

parent 1b9b678b
No related branches found
No related tags found
1 merge request!10MP3 Log Version Ready
......@@ -429,7 +429,8 @@ def parse_config(config_path: str) -> dict:
def map_hostname_to_ip(servers):
for server_id, server in servers.items():
SERVER_ID_TO_IP_MAPPING[server_id] = socket.gethostbyname(server[SERVER_ADDRESS])
SERVER_ID_TO_IP_MAPPING[server_id] = socket.gethostbyname(server[SERVER_ADDRESS]) \
if server[SERVER_ADDRESS] != 'localhost' else socket.gethostbyname(socket.gethostname())
IP_TO_SERVER_ID_MAPPING[SERVER_ID_TO_IP_MAPPING[server_id]] = server_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment