mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-19 01:18:48 +00:00
up
This commit is contained in:
parent
6cfbf3ee58
commit
2339e439ce
16
main.py
16
main.py
@ -37,6 +37,21 @@ rp = Thread(target = reverse_proxy, args=(serv_port, 8001))
|
||||
rp.start()
|
||||
print(f"Порт сервера: {serv_port}")
|
||||
|
||||
|
||||
|
||||
# Стартуем сервисы
|
||||
#http сервер
|
||||
http = Thread(target = server_http)
|
||||
http.start()
|
||||
sleep(1)
|
||||
os.chdir("../") # возвращаемся в корень
|
||||
# сервер для пинга
|
||||
server = Thread(target = server, args=(serv_port,))
|
||||
server.start()
|
||||
|
||||
|
||||
'''
|
||||
# Режим отладки
|
||||
mode = 1
|
||||
|
||||
if mode == 0:
|
||||
@ -55,3 +70,4 @@ elif mode == 1:
|
||||
# if port_dest != "not exist":
|
||||
# client(port_dest, "get_just.jet")
|
||||
|
||||
'''
|
||||
|
@ -35,7 +35,7 @@ def server_http():
|
||||
os.chdir("cached")
|
||||
os.system("python -m http.server")
|
||||
|
||||
def server(http_port):
|
||||
def server(server_port):
|
||||
host = "127.0.0.1"
|
||||
port = 8001
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user