We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "allow-lan": true, "bind-address": "127.0.0.1", "dns": { "enable": false, "listen": "0.0.0.0:53", "nameserver": [ "8.8.8.8", "4.4.4.4" ] }, "log-level": "info", "mode": "rule", "port": 1087, "proxies": [ { "alterId": 0, "cipher": "auto", "name": "config-a", "network": "ws", "port": 443, "server": "Hidden", "skip-cert-verify": false, "tls": true, "type": "vmess", "udp": false, "uuid": "Hidden", "ws-headers": { "Host": "" }, "ws-path": "Hidden" } ], "proxy-groups": [ { "interval": 300, "name": "PROXY", "proxies": [ "config-a" ], "type": "load-balance", "url": "http://www.gstatic.com/generate_204" } ], "rules": [ "IP-CIDR, 127.0.0.0/8, DIRECT", "IP-CIDR, 10.0.0.0/8, DIRECT", "IP-CIDR, 172.16.0.0/12, DIRECT", "IP-CIDR, 192.168.0.0/16, DIRECT", "GEOIP, CN, DIRECT", "MATCH, PROXY" ], "socks-port": 1080 }
<!-- 访问资源时报错 #错误B --> 2022/06/15 14:27:16 [warning] clash: [TCP] dial PROXY (match Match/) to raw.githubusercontent.com:443 error: dial xxxxxx:443 error: 200 OK 2022/06/15 14:27:16 [Info] v2ray-desktop: Start to get url: "https://raw.githubusercontent.com/du5/gfwlist/master/Rules/Clash/gfwlist.yml" 2022/06/15 14:27:16 [Critical] v2ray-desktop: Error occurred during requsting "https://raw.githubusercontent.com/du5/gfwlist/master/Rules/Clash/gfwlist.yml" ; Error: QNetworkReply::RemoteHostClosedError <!-- 启动服务时报错 #错误A --> 2022/06/15 14:12:45 [Critical] v2ray-desktop: Failed to start Clash. 2022/06/15 14:12:45 [Warning] v2ray-desktop: QIODevice::read (QProcess): WriteOnly device 2022/06/15 14:12:45 [Critical] v2ray-desktop: "" 2022/06/15 14:12:45 [Info] v2ray-desktop: Disconnected from "config-a" 2022/06/15 14:12:46 [Info] v2ray-desktop: Connected to "config-a"
Clash在V1.9.0版本弃用了ws-path和ws-headers等配置,导致使用vmess+ws的服务器均无法正常连接,需要更新代码以已修复这个问题。
ws-path
ws-headers
服务器-添加新服务器
WebSocket
Host
Path
打开 V2Ray Desktop
错误A
错误B
# old 已弃用 - name: v4 type: vmess server: example.com port: 443 uuid: uuid alterId: 233 cipher: auto tls: true tls-hostname: example.com skip-cert-verify: true network: ws ws-path: / ws-headers: Host: example.com # new - name: "vmess" type: vmess server: server port: 443 uuid: uuid alterId: 32 cipher: auto udp: true tls: true skip-cert-verify: true servername: example.com # priority over wss host network: ws ws-opts: path: /path headers: Host: v2ray.com max-early-data: 2048 early-data-header-name: Sec-WebSocket-Protocol
config.yaml
The text was updated successfully, but these errors were encountered:
原来是这个原因😂😂, 我说我每次更新版本后都不能联网, 得回退版本才行
Sorry, something went wrong.
Do you mean to downgrade clash to v1.9.0 (or before)?
No branches or pull requests
影响范围
V2Ray Desktop Config
V2Ray Desktop Log
环境 Environment
说明 Description
Clash在V1.9.0版本弃用了
ws-path
和ws-headers
等配置,导致使用vmess+ws的服务器均无法正常连接,需要更新代码以已修复这个问题。重现问题的具体布骤 Steps to Reproduce
服务器-添加新服务器
页面填写配置,传输协议选择WebSocket
,并任意填写Host
和Path
选项打开 V2Ray Desktop
,日志中即出现上述所示的错误A
错误B
更多信息 More Information
config.yaml
后直接启动clash,代理正常运行The text was updated successfully, but these errors were encountered: