Skip to content
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-plugin升级至V1.8.10的一些疑问 #122

Closed
kfen opened this issue Mar 31, 2024 · 2 comments
Closed

利用本脚本xray-plugin升级至V1.8.10的一些疑问 #122

kfen opened this issue Mar 31, 2024 · 2 comments

Comments

@kfen
Copy link

kfen commented Mar 31, 2024

xray-plugin升级至V1.8.10原一键脚本配置参数都不能使用了,无论是在手机端还是PC端都无法正常连接,自己也查阅了下上游的一些文档,没看太明白,还望解答,谢谢。

相关文档:teddysun/xray-plugin#18
XTLS/Xray-core#3152
https://xtls.github.io/config/transports/websocket.html#websocketobject

@RPRX
Copy link

RPRX commented Mar 31, 2024

你用的是 WebSocket 的话,如果你 Xray 服务端配置原有 headers host,v1.8.10 开始该值会被用来检查客户端发来的 host

@cute
Copy link

cute commented Jul 7, 2024

你用的是 WebSocket 的话,如果你 Xray 服务端配置原有 headers host,v1.8.10 开始该值会被用来检查客户端发来的 host

websocket 如果使用非默认端口,则 Host 字段需要包含域名和端口号,中间用冒号 : 分隔。 例如:

Host: www.example.com:8080

目前服务端没有正确处理该问题:

[Info] transport/internet/websocket: failed to validate host, request: www.example.com:8080, config:www.example.com

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

3 participants