{
"log": { "loglevel": "debug", "dnsLog": true },
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "127.0.0.1",
"protocol": "mixed",
"settings": { "auth": "noauth", "udp": true }
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "SERVER_IP",
"port": 14183,
"users": [
{
"id": "UUID",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"xhttpSettings": {
"path": "/tcobxHTTP",
"host": "www.suny.edu",
"mode": "auto"
},
"realitySettings": {
"serverName": "www.suny.edu",
"fingerprint": "chrome",
"publicKey": "PUBLIC_KEY",
"shortId": "SHORT_ID",
"spiderX": ""
}
}
},
{ "tag": "direct", "protocol": "freedom" }
]
}
完整性要求
描述
Xray-core 26.1.31(Windows 客户端)在 VLESS + Reality + XHTTP 的场景下,xhttpSettings.mode=auto 无法连接,报错 proxy/vless/encoding: unexpected response version. Expecting 0 but actually 88。
将 xhttpSettings.mode 显式改为 stream-one 后即恢复正常。
这是从旧版本升级到 26.1.31 后出现的问题(之前 auto 可用)。
排查到 Xray 在 XHTTP dial 时对 auto 的处理可能与 sessionId 生成逻辑不一致:auto 在 Reality 下应等价 stream-one,但仍生成 sessionId,导致 server 侧走了非 stream-one 的处理路径。
相关源码(供参考):
重现方式
客户端配置
Details
服务端配置
Details
客户端日志
Details
服务端日志
Details