Qilan2 commited on
Commit
80e9163
·
verified ·
1 Parent(s): feceb06

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -6
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
- # 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():
 
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():