Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title>IPv6地址的转换结果错误 #794

Open
2 tasks done
GuangYu-yu opened this issue Nov 6, 2024 · 0 comments
Open
2 tasks done

[BUG] <title>IPv6地址的转换结果错误 #794

GuangYu-yu opened this issue Nov 6, 2024 · 0 comments

Comments

@GuangYu-yu
Copy link

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

最新

转换过程

转化为clash

转换设置

,

复现步骤

对于[2606:4700::]:2053这样的ip,比如
trojan://aaa@[2606:4700::]:2053?security=tls&sni=aa.aa&fp=randomized&type=ws&host=aa.aa&path=%2F%3Fed%3D2560#xxx
会转化为
proxies:

  • name: xxx
    server: "[xxx]"
    port: 2053
    type: trojan
    password: xxx
    sni: xxx
    skip-cert-verify: true
    network: ws
    ws-opts:
    path: "/?ed=2560"
    headers:
    Host: xxx
    这会导致无法使用,只有去除中括号,并且地址用引号包裹才可以
    也就是
    server: "xxx"
    在ip是2606:4700:::2053的情况下,其实能够正确转换为
    server: "2606:4700::", port: 2053
    不过像
    2606:4700:2606:4700:2606:4700:2606:4700:2053
    则会转换为
    server: 2606:4700:2606:4700:2606:4700:2606:4700, port: 2053
    ipv6必须以server: "xxx"才能在clash中使用
    ipv6正常情况下都是[xxx]:xxx的格式
    因此订阅转换在转换ipv6地址为clash配置的时候,应该将中括号内作为server的值,并用引号包裹,将 ]: 后面的作为端口号

期望结果

对于server是ipv6的,能正确转换为clash所使用的格式

实际结果

转换后的ipv6没有将中括号去除

错误信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant