ещё малость изменений

This commit is contained in:
2023-05-27 23:32:09 +03:00
parent c45adb7d2e
commit f8624f741f
2 changed files with 316 additions and 71 deletions

View File

@@ -192,10 +192,11 @@ def ports(port, ports_arr, flag):
port = 27015
elif flag == 2:
port = 27044
print("Port=", port)
print_line("Port=", port)
return port
else:
port = max(ports_arr) + 2
print_line("Port=", port)
if port in ports_arr:
print("Порт уже занят")
else:
@@ -308,6 +309,7 @@ def config_nameserver(map_s):
else:
if name_server in list_config:
print_line("Имя занято", flag=False)
config_nameserver(map_s)
else:
list_config.append(name_server) # если enter, то ставим последним элементом карту
break