From bcf5a8d10c086352c30b5e86a062e2703ce15b83 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 5 Dec 2021 03:51:26 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E6=AD=A3=E5=9B=A0xray?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AB=AFalpn=E5=8F=82=E6=95=B0=E4=B8=BAhttp/?= =?UTF-8?q?1.1=E8=80=8C=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/outbound/vless.go | 2 +- go.mod | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/adapter/outbound/vless.go b/adapter/outbound/vless.go index 9042c9dc..0ff816eb 100644 --- a/adapter/outbound/vless.go +++ b/adapter/outbound/vless.go @@ -83,7 +83,7 @@ func (v *Vless) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) { wsOpts.TLSConfig = &tls.Config{ ServerName: host, InsecureSkipVerify: v.option.SkipCertVerify, - NextProtos: []string{"h2", "http/1.1"}, + NextProtos: []string{"http/1.1"}, } if v.option.ServerName != "" { wsOpts.TLSConfig.ServerName = v.option.ServerName diff --git a/go.mod b/go.mod index 8ac7381b..c48b2fb8 100644 --- a/go.mod +++ b/go.mod @@ -40,3 +40,6 @@ require ( golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) +replace ( + github.com/xtls/go v0.0.0-20201118062508-3632bf3b7499 => github.com/Clash-Mini/go v0.0.0-20211204194702-64aa679557f7 +) \ No newline at end of file