Ver Fonte

feat: clash@1 config breaking change (#1084)

kkren há 5 anos atrás
pai
commit
e7c230f5f3
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/Controllers/ConfController.php

+ 3 - 3
src/Controllers/ConfController.php

@@ -327,11 +327,11 @@ class ConfController extends BaseController
         }
 
         $tmp = $Configs['General'];
-        $tmp['Proxy'] = $Proxys;
+        $tmp['proxies'] = $Proxys;
         if (isset($Configs['Proxy Group'])) {
             $Configs['ProxyGroup'] = $Configs['Proxy Group'];
         }
-        $tmp['Proxy Group'] = self::getClashConfProxyGroup(
+        $tmp['proxy-groups'] = self::getClashConfProxyGroup(
             $AllProxys,
             $Configs['ProxyGroup']
         );
@@ -345,7 +345,7 @@ class ConfController extends BaseController
             '',
             Yaml::dump($tmp, 4, 2),
             '',
-            'Rule:',
+            'rules:',
             self::getRule($Configs['Rule'])
         ];