-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[疑问]Xray 前置时从 Nginx 下载文件报错 #3141
Comments
好久没看 fallbacks 相关代码了,不过说起回落,虽然总有人觉得 VLESS 和 Trojan 很像,但 Trojan 协议的 CRLF 是为旧回落方式而设计的,而 VLESS 的 flow 和 seed 是为改变流量特征而设计的,这是两个协议在设计理念上的本质区别,VLESS 是为 *ray 原生设计的,就像你在不需要回落的其它传输方式上空跑 CRLF 不会觉得很奇怪吗, |
{
"alpn": "http/1.1", // 我倒是一直没用加这个 "alpn": "http/1.1" 的写法
"dest": "/dev/shm/default.sock",
"xver": 1
} 文档连接 https://xtls.github.io/Xray-docs-next/config/features/fallback.html#fallbackobject |
看看服务端输出的real alpn? |
Xray 监听 443 ,默认回落 Nginx ,但是从 Nginx 下载文件时会报错:
使用 curl 获取文件正常:
root@~# curl -OJL https://xxx.com/xxx.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1807k 100 1807k 0 0 1920k 0 --:--:-- --:--:-- --:--:-- 1918k
另外,Windows (Chrome/Edge/IE)、iOS (Safari) 和 Android (Chrome) 下载都正常。
经过排障发现问题源自 server.json 配置文件,修改后问题解决了。(其实就是删除了
"alpn": "http/1.1"
)出错的 server.json
修改后的 server.sjon
nginx.site.conf
我的理解是无论是否删除
"alpn": "http/1.1"
,两套配置应该是“等效”的,不知道为什么会出现这样的情况。The text was updated successfully, but these errors were encountered: