fix: 将 fallback 字段中的中划线命名转换为 singbox 的下划线风格

This commit is contained in:
jocayn
2026-06-13 20:14:30 +08:00
parent 9e47640eeb
commit 605870c80b
+2 -1
View File
@@ -178,7 +178,8 @@ function clashToSingbox(node) {
];
for (const k in node) {
if (!excludeKeys.includes(k)) {
sb[k] = node[k];
const newKey = k.replace(/-/g, '_');
sb[newKey] = node[k];
}
}
}