[Fix] 修正因xray服务端alpn参数为http/1.1而导致无法连接的问题

This commit is contained in:
Maze.tsz
2021-12-05 03:51:26 +08:00
parent a847d7b58d
commit 645c3154d6
2 changed files with 4 additions and 1 deletions

View File

@ -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