mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
31 lines
528 B
Python
31 lines
528 B
Python
from os import system, name
|
|
from threading import Thread
|
|
|
|
# Здесь общий запуск всех файлов и команд
|
|
|
|
'''
|
|
# Порт для приёма всяких запросов
|
|
def reverse_proxy():
|
|
port = 8000
|
|
if name == "posix":
|
|
system(f"./bore local {port} --to jetwork.404.mn")
|
|
elif name == "nt":
|
|
system("")
|
|
|
|
# Стартуем проброс порта
|
|
rp = Thread(target = reverse_proxy)
|
|
rp.start()
|
|
'''
|
|
|
|
'''
|
|
from network import *
|
|
|
|
#server(8000)
|
|
|
|
if client(8001):
|
|
print(1)
|
|
else:
|
|
print(2)
|
|
'''
|
|
|