From bee11f1b69f373ba8b2f16a9188f57c263420910 Mon Sep 17 00:00:00 2001 From: DarkMidus Date: Sun, 24 May 2020 13:18:27 -0500 Subject: [PATCH] Fixed Local host --- Defs/ActionManager/Server/server_runner.py | 2 +- Defs/ActionManager/simple_informant.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 86f4cd1..1684567 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -45,7 +45,7 @@ def start_localhost(port): # '') simple_informant.global_message() print(localization.lang_start_localhost["localhost_server"]) - host = simple_informant.get_ip_addr + host = "127.0.0.1" print(localization.lang_start_localhost["your_localhost_is"] + host) set_port() #run_command("cd Server/www/ diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 9e17bc3..507c6df 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -200,13 +200,6 @@ def remove_readonly(func, path, _): func(path) -def get_ip_addr(): - try: - host_ip = socket.gethostbyname(socket.gethostname()) - except: - print(localization.lang_get_ip_addr["unable_to_get_ip"]) - return host_ip - def global_message(): print(global_localization.hidden_eye_logo) print(global_localization.official_website_link)