Skip to content

Commit

Permalink
Merge pull request #272 from cnsunyour/fix/singbox
Browse files Browse the repository at this point in the history
导出 sing-box 配置中的 vless 节点不能包含 security 属性
  • Loading branch information
geekdada authored Jun 10, 2024
2 parents 541b19d + 2aea1c2 commit 31d4aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/singbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 31d4aab

Please sign in to comment.