您好,使用 Surge 配置 Vmess 協議代理無法連接,提示 Handshake failed: 400 Bad Request.
在其他代理工具如 V2rayX 或 V2rayU 均能正常使用。
伺服器搭建模式爲 V2ray+WebSocket+TLS+Nginx+CDN. 網站能正常訪問。
Surge 配置如下:
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local
dns-server = 8.8.8.8
[Proxy]
Server = Vmess, xx.xx.xx.xx, 443, username=xxx-xxx-xxx-xxx-xxx, ws=true, ws-path=/xxxxx, ws-headers=Host:"www.xxxxx.monster"
[Rule]
FINAL, DIRECT
MacOS 版本:10.14.6
Surge 版本:3.5.0
請問這個怎樣解決或者應該如何排查?謝謝。
Verbose日誌顯示:
<VERBOSE>[SGVMessConnector-37] ignore SGSocketReservedWriteTagVMessWebSocketRequestHeader
<VERBOSE>[SGVMessConnector-37] websocket drive didFailWithError: Error Domain=PSWebSocketErrorDomain Code=2 "Handshake failed: 400 Bad Request" UserInfo={NSLocalizedFailureReason=400 Bad Request, HTTPResponse=<CFHTTPMessageRef 0x7fe8635ec540(0x7fe8635ec550)> { parsed response, url = (null), status = 400 }, HTTPStatus=400, NSLocalizedDescription=Handshake failed: 400 Bad Request}
<VERBOSE> [SGVMessConnector-37] disconnectWithError: Error Domain=PSWebSocketErrorDomain Code=2 "Handshake failed: 400 Bad Request" UserInfo={NSLocalizedFailureReason=400 Bad Request, HTTPResponse=<CFHTTPMessageRef 0x7fe8635ec540(0x7fe8635ec550)> { parsed response, url = (null), status = 400 }, HTTPStatus=400, NSLocalizedDescription=Handshake failed: 400 Bad Request}
@SurgeTeam