mirror of
https://github.com/Justuser3310/jetwork.git
synced 2026-06-11 21:01:01 +00:00
up
This commit is contained in:
@@ -37,8 +37,6 @@ rp_serv.start()
|
||||
#http сервер
|
||||
http = Thread(target = server_http)
|
||||
http.start()
|
||||
sleep(1)
|
||||
os.chdir("../") # возвращаемся в корень
|
||||
# сервер для пинга
|
||||
server = Thread(target = server, args=(http_port,))
|
||||
server.start()
|
||||
|
||||
+1
-2
@@ -38,8 +38,7 @@ def port_gen():
|
||||
def server_http():
|
||||
while True:
|
||||
try:
|
||||
os.chdir("cached")
|
||||
os.system("python -m http.server")
|
||||
os.system("python -m http.server --directory cached")
|
||||
except Exception as e:
|
||||
print("SERVER_HTTP FALLED")
|
||||
logging.critical(e, exc_info=True)
|
||||
|
||||
Reference in New Issue
Block a user