v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.32k stars 8.94k forks source link

客户端v2ray.exe运行报错: failed to dial WebSocket ... #678

Closed lucaskeen closed 6 years ago

lucaskeen commented 6 years ago

1) 你正在使用哪个版本的 V2Ray? 2.45

2) 你的使用场景是什么? Chrome+SwitchyOmega+WebSocket->youtube

SwitchyOmega设置:代理协议:http,127.0.0.1:8080

3) 你看到的不正常的现象是什么? 客户端运行v2ray.exe报错,无法连接youtube

4) 你期待看到的正确表现是怎样的? 客户端v2ray.exe工作正常,能连通

5) 服务器配置文件(提交 Issue 前请隐藏服务器端IP地址)。 { "log": { "loglevel": "warning" }, "inbound": { "protocol": "vmess", "port": 8080, "settings": { "clients": [ { "id": "**aaa", "alterId": 64, "security": "none" } ] }, "streamSettings": { "network": "ws" } }, "inboundDetour": [], "outbound": { "protocol": "freedom", "settings": {} } }

Client Configuration File(客户端配置文件):

{ "log": { "loglevel": "warning" }, "inbound": { "port": 8080, "protocol": "http", "listen": "127.0.0.1", "settings": { } }, "inboundDetour": [], "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "**.7e14.starter-us-west-2.openshiftapps.com", "port": 443, "users": [ { "id": "**aaa", "alterId": 64, "security": "none" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "allowInsecure": true } }, "mux": { "enabled": true, "concurrency": 8 } }, "outboundDetour": [ { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "dns": { "servers": [ "localhost" ] }, "routing": { "strategy": "rules", "settings": { "domainStrategy": "AsIs", "rules": [ { "type": "chinasites", "outboundTag": "direct" }, { "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.0.2.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "direct" }, { "type": "chinaip", "outboundTag": "direct" } ] } } }

6) 请附上出错时软件输出的日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

Client Log File(客户端日志):

$ v2ray.exe V2Ray v2.45 (One for all) 20171029 An unified platform for anti-censorship. 2017/11/03 17:51:00 [Debug]App|Proxyman|Inbound: creating tcp worker on 127.0.0.1:8080 2017/11/03 17:51:00 [Info]Transport|Internet|TCP: listening TCP on 127.0.0.1:8080 2017/11/03 17:51:00 [Warning]Core: V2Ray started 2017/11/03 17:51:32 [Warning]failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://****.7e14.starter-us-west-2.openshiftapps.com/): 503 Service Unavailable > websocket: bad handshake] > Retry: all retry attempts failed

DarienRaymond commented 6 years ago

看上去像是你用的服务(openshiftapps)不支持ws转发,请查询转发(443端口)过程的日志。

daiaji commented 6 years ago

openshfit3 怎么调节容器内存占用啊 听说能开4个pods 果然还是好想要通断检测 这样其中一个pods维护的时候就能跳到另外一个pods了

DarienRaymond commented 6 years ago

Closing due to inactivity