-
Notifications
You must be signed in to change notification settings - Fork 284
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
[Bug]: ForwardWebSocket
/ HTTP
在非 Windows 平台的 Host
配置需要和请求头的 Host
一致
#264
Comments
我测试用的就是 例如 |
127.0.0.1
localhost
与 127.0.0.1
不等价
localhost
与 127.0.0.1
不等价localhost
与 127.0.0.1
不等价
localhost
与 127.0.0.1
不等价localhost
与 127.0.0.1
不等价
wontfix 呜呜呜 |
localhost
与 127.0.0.1
不等价localhost
与 127.0.0.1
不等价
在 Linux 上,用于 |
localhost
与 127.0.0.1
不等价ForwardWebSocket
/ HTTP
在非 Windows 平台的 Host
需要和请求头的 Host
一致
ForwardWebSocket
/ HTTP
在非 Windows 平台的 Host
需要和请求头的 Host
一致ForwardWebSocket
/ HTTP
在非 Windows 平台的 Host
配置需要和请求头的 Host
一致
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请确保您已阅读以上注意事项,并勾选下方的确认框。
Lagrange项目
OneBot
所使用/依赖的Lagrange项目对应的commit
db45b79
运行环境
Linux
运行架构
x64
连接方式
正向 WebSocket
重现步骤
在 appsettings.json 中配置正向 WS 的 Host 为
127.0.0.1
,启动服务。期望的结果是什么?
拉格兰监听 127.0.0.1 的指定端口,服务正常。
实际的结果是什么?
netstat 显示拉格兰确实在监听 127.0.0.1 的指定端口,但下游服务无法连接。
显示错误信息为
websocket: bad handshake
。简单的复现代码/链接(可选)
No response
日志记录(可选)
No response
补充说明(可选)
注意到,如果将 Host 填写为
localhost
,可以达成与之前填写127.0.0.1
相同的效果。对于网络服务来说,
127.0.0.1
和localhost
应该是完全等价的。甚至前者应该是比后者更严谨的。这里的 Breaking Change 不利于用户升级版本。建议做出更改以适配两种写法。The text was updated successfully, but these errors were encountered: