xcode75 / XManagerPlus

An Xray Manager
https://xcode75.github.io/XMPlusDocs/
267 stars 48 forks source link

[BUG] Websocket problem on latest version #342

Closed ashyrz-pro closed 3 months ago

ashyrz-pro commented 3 months ago

Environment

OS: Ubuntu

PHP version:

DB version:

Panel Version: Latest

Debug Info: enable debug in config.php and upload screenshot.

Bug Info

Describe the issue you run into.。

The network settings on the panel has changed

{ "transport": "ws", "acceptProxyProtocol": false, "path": "/xmplus?ed=2560", **"host": "hk1.xyz.com" }

this is the new settings, if host is behind a cdn(in my case google middleware ws proxy) it doesnt allow traffic and nothing reaches the server.

but if I use the older network settings like this

{ "transport": "ws", "acceptProxyProtocol": false, "path": "/xmplus?ed=2560", "headers": { "Host": "hk1.xyz.com" } }

Traffic arrives the server and everything works fine but if client updates the subscription the host is empty. I updated both admin panels and nodes rebooted them and everything. Please check.

ashyrz-pro commented 3 months ago

GRPC and other protocols are working fine the problem only seems to occur with websocket

ashyrz-pro commented 3 months ago

if I can assist with any more info about the issue feel free to contact @yedyans telegram

xcode75 commented 3 months ago

https://github.com/XTLS/Xray-core/issues/3222

just leave host empty

ashyrz-pro commented 3 months ago

If I leave host empty after updating subscription websocket host disappears

ashyrz-pro commented 3 months ago

If I keep like this there is no traffic image

ashyrz-pro commented 3 months ago

If I do like this traffic reaches the server but upon updating subsciption the ws host is empty

Screenshot 2024-08-16 at 04 32 18