alroyso 3 周之前
父節點
當前提交
8fbe6911c4
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 0 1
      lib/app/controller/GlobalController.dart
  2. 1 0
      lib/app/service/connection_service.dart

+ 0 - 1
lib/app/controller/GlobalController.dart

@@ -269,7 +269,6 @@ class GlobalController extends GetxController {
       // 检查内核是否正在运行
       if (!await checkAllCoresStopped()) {
         throw Exception("内核未启动");
-        return;
       }
 
       var g = "proxy";

+ 1 - 0
lib/app/service/connection_service.dart

@@ -28,6 +28,7 @@ class ConnectionService {
       updateStatus(ConnectionStatus.connecting);
       globalController.updateMsg("正在启动连接...");
       await globalController.updateNode();
+      await globalController.swift(globalController.selectedNode.value?.name ?? "");
       // 等待连接建立
       await Future.delayed(Duration(seconds: 2));
       updateStatus(ConnectionStatus.connected);