Fixed Local host
parent
0071ee2166
commit
bee11f1b69
|
@ -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/
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue