Skip to content

转换目标为Surge时,hysteria协议错误 #821

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

Open
2 tasks done
antergone opened this issue Feb 12, 2025 · 1 comment
Open
2 tasks done

转换目标为Surge时,hysteria协议错误 #821

antergone opened this issue Feb 12, 2025 · 1 comment

Comments

@antergone
Copy link

antergone commented Feb 12, 2025

确认版本最新

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

检索issue

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

subconverter版本

latest

转换过程

目标为Surge时,hysteria协议错误

转换设置

默认配置

复现步骤

https://sub.xeton.dev/sub?target=surge&ver=4&new_name=true&url=hysteria2%3A%2F%2Ftoken%40mocknode.com%3A12345%2F%3Finsecure%3D1%26sni%3Dwww.bing.com%23MockNode

Mock一个节点即可

期望结果

Proxy部分协议应该为 hysteria2

[Proxy]
DIRECT = direct
MockNode = hysteria2, mocknode.com, 12345, password=token,skip-cert-verify=true,sni=www.bing.com
🎯 全球直连 = direct

实际结果

Proxy部分协议为 hysteria

[Proxy]
DIRECT = direct
MockNode = hysteria, mocknode.com, 12345, password=token,skip-cert-verify=true,sni=www.bing.com
🎯 全球直连 = direct

排查问题

代码走读了一下,问题点可能在这里:

case ProxyType::Hysteria2:
if(surge_ver < 4)
continue;
proxy = "hysteria, " + hostname + ", " + port + ", password=" + password;
if(x.DownSpeed)

@asdlokj1qpi233
Copy link

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

2 participants