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

[SOLVED] Shadowwocks xray not connecting (Host header missing) #30

Open
BlackWolfWoof opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@BlackWolfWoof
Copy link

I ran into issues of shadowsocks xray via ws no longer connecting to my server. Turns out the app says this:
01-08 19:38:02.928 28684 28738 I xray : common/mux: failed to handler mux client connection > proxy/freedom: failed to open connection to tcp:blackwolfwoof.com:443 > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://blackwolfwoof.com/owothatsthis): 404 Not Found > websocket: bad handshake] > common/retry: all retry attempts failed
Turns out you have to add the host header to the server config now.

OLD

{
    "server":"0.0.0.0",
    "server_port":1234,
    "password":"password",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":true,
    "nameserver":"192.168.178.208",
    "mode":"tcp_only",
    "plugin":"xray-plugin",
    "plugin_opts":"server;path=/owothatsthis"
}

NEW

{
    "server":"0.0.0.0",
    "server_port":1234,
    "password":"password",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":true,
    "nameserver":"192.168.178.208",
    "mode":"tcp_only",
    "plugin":"xray-plugin",
    "plugin_opts":"server;path=/owothatsthis;host=blackwolfwoof.com"
}

For anyone that is looking for this issue, there you have your solution :)

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

1 participant