Update server.py
Browse files
server.py
CHANGED
|
@@ -545,13 +545,13 @@ if os.path.exists('/sillytavern/start.sh'):
|
|
| 545 |
backup_thread.start()
|
| 546 |
print("开始衔接")
|
| 547 |
Service_status = True
|
| 548 |
-
|
| 549 |
-
|
| 550 |
# 以线程的形式运行 frp 任务
|
| 551 |
-
frp_thread1 = threading.Thread(target=frp, args=(config_data2, '/content/frp/frpc2.ini', True))
|
| 552 |
-
frp_thread1.start()
|
| 553 |
-
frp_thread2 = threading.Thread(target=frp, args=(config_data, '/content/frp/frpc.ini', False))
|
| 554 |
-
frp_thread2.start()
|
| 555 |
while True:
|
| 556 |
is_running = is_script_running("/sillytavern/start.sh")
|
| 557 |
if backup_thread.is_alive():
|
|
|
|
| 545 |
backup_thread.start()
|
| 546 |
print("开始衔接")
|
| 547 |
Service_status = True
|
| 548 |
+
frp(config_data2,'/content/frp/frpc2.ini',True)
|
| 549 |
+
frp(config_data,'/content/frp/frpc.ini',False)
|
| 550 |
# 以线程的形式运行 frp 任务
|
| 551 |
+
# frp_thread1 = threading.Thread(target=frp, args=(config_data2, '/content/frp/frpc2.ini', True))
|
| 552 |
+
# frp_thread1.start()
|
| 553 |
+
# frp_thread2 = threading.Thread(target=frp, args=(config_data, '/content/frp/frpc.ini', False))
|
| 554 |
+
# frp_thread2.start()
|
| 555 |
while True:
|
| 556 |
is_running = is_script_running("/sillytavern/start.sh")
|
| 557 |
if backup_thread.is_alive():
|