v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Bug]: 切换sing_box后,不支持ws0-rtt握手(xray和v2ray的都))

Open Fhokud opened this issue 2 years ago • 2 comments

预期情况

UI界面设置支持wss0-rtt握手(使用sing_box时)

实际情况

UI界面设置不支持ws 0-rtt握手(使用sing_box时)

复现方法

示例

vless://UUID@域名:443?path=%2Fpath%3Fed%3D2080&security=tls&encryption=none&host=%E5%9F%9F%E5%90%8D&type=ws&sni=域名#WebSocket-xray

支持xray的ws0-rtt需要在sinbox配置文件添加

        "early_data_header_name": "Sec-WebSocket-Protocol",
        "max_early_data": 早期数据大小

而v2fly的支持只需要

        "max_early_data": 早期数据大小

希望能在ui上做一些适配,或者干脆加一个开关。切换v2ray/xray/off的ws0-rtt启用?

日志信息

额外信息

No response

我确认已更新至最新版本

  • [X] 是

我确认已查询历史issues

  • [X] 是

Fhokud avatar Jun 11 '23 07:06 Fhokud

此功能能带来什么好处?

2dust avatar Jun 11 '23 12:06 2dust

此功能能带来什么好处?

使用sing_box减少使用websocket连接的握手延迟 可以节省1-RTT,使握手延迟与直接使用vl/vm ess_TCP延迟相当

原本在xray里可以简单启用(ws path后加?ed=早期数据大小)

Fhokud avatar Jun 11 '23 12:06 Fhokud