Skip to content

Trojan 订阅连接转换失败 #388

@lixiao189

Description

@lixiao189

问题描述

Trojan 订阅连接

环境信息

  • singbox
  • 客户端版本:1.13.11

原始节点信息:

trojan://xxxx@url:port?allowInsecure=1&peer=www.apple.com.cn&sni=www.apple.com.cn&type=tcp#🇯🇵【亚洲】日本03丨专线【3x】

trojan 上默认没有 security,这个参数,需要和 Hysteria2 一样补上这个参数。否则转换出的订阅中 tls.enabled = false 会直接导致 sing-box 启动失败

复现步骤

  1. 导入一个 trojan 订阅连接
  2. 转换结果

预期行为

security 应该和 hysteria2 解析的时候一样自己带上 params.security = 'tls';

补充信息

  • 我愿意提交PR来修复这个问题
  • 我提供的信息已经经过脱敏
  • 我确认没有找到解决相同问题的 issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions