alroyso 1 年間 前
コミット
66dd2c5e0f
2 ファイル変更4 行追加4 行削除
  1. 1 1
      lib/app/const/const.dart
  2. 3 3
      lib/app/controller/config.dart

+ 1 - 1
lib/app/const/const.dart

@@ -11,7 +11,7 @@ class ClashName {
   }
 
   static String get arch {
-    return const String.fromEnvironment('OS_ARCH', defaultValue: 'amd64'); //amd64
+    return const String.fromEnvironment('OS_ARCH', defaultValue: 'arm64'); //amd64
   }
 
   static String get ext {

+ 3 - 3
lib/app/controller/config.dart

@@ -86,7 +86,7 @@ class ConfigController extends GetxController {
         return '';
     }
   }
-
+//
 
   Future<void> makeInitConfig() async{
 
@@ -150,7 +150,7 @@ rules:
   - GEOIP,CN,DIRECT
   - MATCH,proxy
   ''';
-
+//
     var initconfig = '''
 mixed-port: ${mixedPort.value}
 allow-lan: true
@@ -222,7 +222,7 @@ $rules
     // final _extControl = RegExp(r'''(?<!#\s*)external-controller:\s+['"]?([^'"]+?)['"]?\s''').firstMatch(_config)?.group(1);
     // final _secret = RegExp(r'''(?<!#\s*)secret:\s+['"]?([^'"]+?)['"]?\s''').firstMatch(_config)?.group(1);
     clashCoreApiAddress.value = configJson["external-controller"] ?? '127.0.0.1:9090';
-    //print("clash api address ${clashCoreApiAddress.value}");
+    print("clash api address ${clashCoreApiAddress.value}");
     clashCoreApiSecret.value = (configJson["secret"] ?? '');
     mixedPort.value = (configJson["mixed-port"] ?? 9788);
     clashCoreTunEnable.value = configJson["tun"]?["enable"] == true;