no message

This commit is contained in:
hellcat 2026-01-17 14:53:55 +08:00
parent 9f49492831
commit 4b524672ba
2 changed files with 14 additions and 7 deletions

View File

@ -200,7 +200,13 @@ final class FreenodeMerge
$aProxyGroup["proxies"] = self::arrMerge($aProxyGroup["proxies"], $aNodeCountryList);
}
$sMerge = Yaml::dump($aClashTemplate, 4);
$sMerge = Yaml::dump(
$aClashTemplate,
4, // 层级深度
2, // 缩进空格数
Yaml::DUMP_STR_QUOTED // 核心指令:全员穿上引号防弹衣!
);
}
$sFileDir = $sDirBase."public/freenode/merge/base/".$sPoolClient;

View File

@ -105,12 +105,13 @@ final class FreenodePool
$aFromFileContent = $aFromFileContent["proxies"];
foreach ($aFromFileContent as $aNode) {
if (isset($aNode["cipher"])) {
if ($aNode["cipher"] == "auto") {
$sRawCipher = "auto";
$aNode["cipher"] = '"' . $sRawCipher . '"';
}
}
// if (isset($aNode["cipher"])) {
// if ($aNode["cipher"] == "auto") {
//// $sRawCipher = "auto";
//// $aNode["cipher"] = '"' . $sRawCipher . '"';
// $aNode["cipher"] = '"auto'';
// }
// }
$aNodeFormat["protocolType"] = $aNode["type"];
$aNodeFormat["country"] = $aNode["name"]; // data