|
@@ -231,11 +231,12 @@ class GlobalController extends GetxController {
|
|
await controllers.config.initConfig();
|
|
await controllers.config.initConfig();
|
|
}
|
|
}
|
|
nodeModes.value = await ApiService().getNode("/api/client/v4/nodes?vless=1");
|
|
nodeModes.value = await ApiService().getNode("/api/client/v4/nodes?vless=1");
|
|
|
|
+
|
|
|
|
+
|
|
if (!await checkAllCoresStopped()) {
|
|
if (!await checkAllCoresStopped()) {
|
|
throw Exception("内核未启动");
|
|
throw Exception("内核未启动");
|
|
}
|
|
}
|
|
- await makeProxy();
|
|
|
|
- await controllers.cc_service.reloadClashCore();
|
|
|
|
|
|
+
|
|
} catch (e) {
|
|
} catch (e) {
|
|
handleApiError(e);
|
|
handleApiError(e);
|
|
}
|
|
}
|