diff --git a/sub2proxy.js b/sub2proxy.js index f5c3489..4d19b3d 100644 --- a/sub2proxy.js +++ b/sub2proxy.js @@ -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]; } } }