mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-18 17:08:48 +00:00
up
This commit is contained in:
parent
f10c338016
commit
5644f2b32b
4
main.py
4
main.py
@ -24,11 +24,13 @@ from proxy import *
|
||||
http_port = port_gen()
|
||||
print(f"HTTP: {http_port}")
|
||||
rp_http = Thread(target = watch_http, args=(http_port,))
|
||||
rp_http.daemon = True
|
||||
rp_http.start()
|
||||
|
||||
serv_port = port_gen()
|
||||
print(f"SERV: {serv_port}")
|
||||
rp_serv = Thread(target = watch_serv, args=(serv_port,))
|
||||
rp_serv.daemon = True
|
||||
rp_serv.start()
|
||||
|
||||
|
||||
@ -36,9 +38,11 @@ rp_serv.start()
|
||||
# Стартуем сервисы
|
||||
#http сервер
|
||||
http = Thread(target = server_http)
|
||||
http.daemon = True
|
||||
http.start()
|
||||
# сервер для пинга
|
||||
server = Thread(target = server, args=(http_port,))
|
||||
server.daemon = True
|
||||
server.start()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user