apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.54k stars 1.62k forks source link

[Feature Request] 将端口跳跃的格式添加到原本的URI Scheme #534

Open chidedao opened 1 year ago

chidedao commented 1 year ago

Details

如题

Value

如题

Available alternatives

No response

Additional information

No response

haruue commented 1 year ago

之前的是这样

hysteria://host:port?protocol=udp&auth=123456&peer=sni.domain&insecure=1&upmbps=100&downmbps=100&alpn=hysteria&obfs=xplus&obfsParam=123456#remarks

https://hysteria.network/docs/uri-scheme/

直接把 port 换成 port1-port2 应该会 break uri parser 。 估计只能作为 query 字段, 原有的 port 可以保留, 生成时从 port range 里随机选一个(保持兼容性)。

chidedao commented 1 year ago

iOS小火箭是这样兼容的,感觉可以参考一下? &mport=port1-port2
hysteria://host:port?protocol=udp&auth=123456&peer=sni.domain&insecure=1&upmbps=100&downmbps=100&alpn=hysteria&obfs=xplus&obfsParam=123456&mport=port1-port2#remarks

WillGhost commented 1 year ago

确实 别动原来的port 那个字段大多映射类型是 int

现在小火箭是新增参数,matsuri 是直接写在了server里面。

感觉新增字段会比较好