clash-linux commited on
Commit
14f8c22
·
verified ·
1 Parent(s): b044a62

Upload 21 files

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -410,7 +410,7 @@ def upload_config():
410
  # 重启Clash以加载新配置
411
  if clash_manager is not None:
412
  logger.info("正在重启Clash以加载手动配置...")
413
- clash_manager.restart_clash(config_path=config_path) # 明确指定新配置路径
414
  initialization_error = None # 清除之前的初始化错误
415
  logger.info("Clash已使用手动配置重启")
416
  else:
 
410
  # 重启Clash以加载新配置
411
  if clash_manager is not None:
412
  logger.info("正在重启Clash以加载手动配置...")
413
+ clash_manager.restart_clash()
414
  initialization_error = None # 清除之前的初始化错误
415
  logger.info("Clash已使用手动配置重启")
416
  else: