[Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.xxx.com/xxxxxxxxxxx/): > remote error: tls: error decoding message] >v2ray.com/core/common/retry: all retry attempts failed
在v4.18.0的基础上,做了如下更改:
1.在v2ray-core/main/main.go 的func main()中加入
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
2.在 /go_master/gopath/src/v2ray.com/core/transport/internet/tls/config.go config.CipherSuites = []uint16{}中添加
tls.TLS_CHACHA20_POLY1305_SHA256,
tls.TLS_AES_256_GCM_SHA384,
tls.TLS_AES_128_GCM_SHA256,
3.修改/go_master/gopath/src/v2ray.com/core/infra/bazel/build.bzl
GOCACHE=/tmp
bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH //release:v2ray_linux_amd64_package
编译安装后,tls1.3仍无法使用,报同样的错误。
当只启用tls.TLS_CHACHA20_POLY1305_SHA256,tls.TLS_AES_256_GCM_SHA384,tls.TLS_AES_128_GCM_SHA256,
时,tls1.3可以正常使用。
$ uname -a
Linux manjaro-pc 4.19.34-1-MANJARO
$ go version
go version go1.12.3 linux/amd64
$ bazel version
Build label: 0.22.0