前几天开始出现SSL handshake timed out连不上了,同一个VPS上的ss协议目前能访问,但是v2ray突然访问不了了 · Issue #2447 · v2ray/v2ray

您所在的位置:网站首页 华为手机v2ray 前几天开始出现SSL handshake timed out连不上了,同一个VPS上的ss协议目前能访问,但是v2ray突然访问不了了 · Issue #2447 · v2ray/v2ray

前几天开始出现SSL handshake timed out连不上了,同一个VPS上的ss协议目前能访问,但是v2ray突然访问不了了 · Issue #2447 · v2ray/v2ray

2023-12-19 00:24| 来源: 网络整理| 查看: 265

刚在 linux 386 客户端也出现相似问题,在 curl 的里报 SSL_ERROR_SYSCALL

$ export https_proxy=http://localhost:1087 $ curl -Ikvv https://www.google.com.hk * Uses proxy env variable https_proxy == 'http://localhost:1087' * Trying 127.0.0.1:1087... * Connected to localhost (127.0.0.1) port 1087 (#0) * allocate connect buffer! * Establish HTTP proxy tunnel to www.google.com.hk:443 > CONNECT www.google.com.hk:443 HTTP/1.1 > Host: www.google.com.hk:443 > User-Agent: curl/7.69.1 > Proxy-Connection: Keep-Alive > traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > EOF

能确信不是服务端问题,也不是配置文件问题(相同配置在 Linux 64 试了可以,binary 用相同代码构建),也不是静态、动态编译的原因。从 Release 页面下载的 V4.23.1 也不行。排除 curl, openssl, ca-certificate 问题(把 https_proxy 换成另一台机器 v2ray 的 ip:port 就能 curl 成功了),系统时区与时间也同步了,一样。

源码加 log 调试发现这行报错proxy/vmess/outbound/outbound.go#L138

if err := buf.Copy(input, bodyWriter, buf.UpdateActivity(timer)); err != nil { // io: read/write on closed pipe return err }

附机器信息,go 版本,配置文件信息,希望作者给点 debug 建议,我是菜鸟 transport 那块代码扣不下去了。

$ uname -a Linux eeepc 5.6.4-arch1-1.0 #1 SMP PREEMPT Wed, 15 Apr 2020 02:15:16 +0000 i686 GNU/Linux $ go env [7:31:19] GO111MODULE="" GOARCH="386" GOBIN="" GOCACHE="/home/arch/.cache/go-build" GOENV="/home/arch/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="386" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/arch/GOPATH" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_386" GCCGO="gccgo" GO386="sse2" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build434177897=/tmp/go-build -gno-record-gcc-switches" $ file v2ray [7:31:51] v2ray: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, Go BuildID=WtZmPwvl4iRCv84CRod6/5EPpGufKMJwxRTT-5ZUO/nWOkd0FPtfM7gfRUoLh7/C69DkDCh2zYglhiFpyum, not stripped $ ./v2ray --version [7:32:00] V2Ray 4.23.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.13.6 linux/386) A unified platform for anti-censorship. $ cat my-client.json { "inbounds": [ { "port": 1080, "listen": "0.0.0.0", "protocol": "socks", "settings": { "udp": true }, "tag": "in-0" }, { "port": 1087, "listen": "0.0.0.0", "protocol": "http", "settings": {}, "tag": "in-1" } ], "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "xxxxxxxx", "port": xxxx, "users": [ { "id": "xxxxxxxxxxxxxxxxxxxxxx" } ] } ] } }, { "protocol": "freedom", "tag": "direct", "settings": {} } ], "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "ip": [ "geoip:private" ], "outboundTag": "direct" } ] } }


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3