1
This commit is contained in:
parent
a075e44f31
commit
514d9f1a4e
10
hlna.py
10
hlna.py
@ -136,8 +136,12 @@ def unpack(src, dst):
|
||||
|
||||
|
||||
def external_ip():
|
||||
ip_ext = requests.get('https://api/ipify.org')
|
||||
return ip_ext.text
|
||||
response = requests.get('https://2ip.ru/')
|
||||
html = response.text
|
||||
index = html.find('Ваш IP')
|
||||
ip = html[index+38:index+53]
|
||||
print(ip)
|
||||
|
||||
|
||||
|
||||
def print_line(*text, flag=""):
|
||||
@ -750,7 +754,7 @@ def status(list_config=list_config):
|
||||
Rcon включен: {data['RCONEnabled']}
|
||||
Rcon порт : {data['RCONPort']}
|
||||
Максимальное кол-во игроков: {data['MaxPlayers']}
|
||||
steam://connect/{external_ip()}:{data['QueryPort']}""", flag="CYAN")
|
||||
steam://connect/:{data['QueryPort']}""", flag="CYAN")
|
||||
|
||||
if delist_config != []:
|
||||
x = input("Есть неактивные сервера, показать Y/n: ")
|
||||
|
Loading…
Reference in New Issue
Block a user