alroyso 3 months ago
parent
commit
8fbe6911c4

+ 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);