мелкие исправления
This commit is contained in:
parent
32f73457c7
commit
ff2d2f1668
15
hlna.py
15
hlna.py
@ -116,7 +116,7 @@ def config_ark(list_config=list_config):
|
|||||||
cluster_id = ""
|
cluster_id = ""
|
||||||
cluster_dir_override = ""
|
cluster_dir_override = ""
|
||||||
|
|
||||||
count_cluster = check_int("""Укажите требуется ли кластер?
|
count_cluster = check_int("""Укажите требуется ли кластер? default: Нет
|
||||||
1. Да
|
1. Да
|
||||||
2. Нет
|
2. Нет
|
||||||
: """)
|
: """)
|
||||||
@ -198,9 +198,9 @@ def config_ark(list_config=list_config):
|
|||||||
def ports(ports_arr):
|
def ports(ports_arr):
|
||||||
while True:
|
while True:
|
||||||
port = check_int("")
|
port = check_int("")
|
||||||
if port == 0:
|
if not port:
|
||||||
if not ports_arr:
|
if not ports_arr:
|
||||||
print("Значение по умолчаню")
|
return 0
|
||||||
else:
|
else:
|
||||||
port = max(ports_arr) + 2
|
port = max(ports_arr) + 2
|
||||||
if port in ports_arr:
|
if port in ports_arr:
|
||||||
@ -232,17 +232,18 @@ def config_ark(list_config=list_config):
|
|||||||
list_config.append(name_server) # если enter, то ставим последним элементом карту
|
list_config.append(name_server) # если enter, то ставим последним элементом карту
|
||||||
break
|
break
|
||||||
|
|
||||||
print("Укажите порт сервера:\n")
|
print("Укажите порт сервера: ")
|
||||||
port_server = ports(port_s)
|
port_server = ports(port_s)
|
||||||
print("Укажите query порт сервера:\n")
|
|
||||||
query_port = ports(query_p)
|
|
||||||
if port_server == 0:
|
if port_server == 0:
|
||||||
port_server = 7777
|
port_server = 7777
|
||||||
|
print("Порт Сервера=", port_server)
|
||||||
|
print("Укажите query порт сервера: ")
|
||||||
|
query_port = ports(query_p)
|
||||||
if query_port == 0:
|
if query_port == 0:
|
||||||
query_port = 27015
|
query_port = 27015
|
||||||
print("Порт Сервера=", port_server)
|
|
||||||
print("Query Port=", query_port)
|
print("Query Port=", query_port)
|
||||||
|
|
||||||
|
|
||||||
rcon_enabled = True
|
rcon_enabled = True
|
||||||
if rcon_p == []:
|
if rcon_p == []:
|
||||||
rcon_port = 27020
|
rcon_port = 27020
|
||||||
|
Loading…
Reference in New Issue
Block a user