diff --git a/src/utils/singbox.ts b/src/utils/singbox.ts index 9e602024..f5848c29 100644 --- a/src/utils/singbox.ts +++ b/src/utils/singbox.ts @@ -117,9 +117,9 @@ function nodeListMapper(nodeConfig: PossibleNodeConfigType) { case NodeTypeEnum.Vless: case NodeTypeEnum.Vmess: { - node.security = nodeConfig.method node.uuid = nodeConfig.uuid if (nodeConfig.type === NodeTypeEnum.Vmess) { + node.security = nodeConfig.method if (nodeConfig.alterId) { node.alter_id = Number(nodeConfig.alterId) }