[Fix] 修正因xray服务端alpn参数为http/1.1而导致无法连接的问题
This commit is contained in:
parent
37ea8aff5c
commit
a847d7b58d
1 changed files with 2 additions and 2 deletions
|
@ -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{"http/1.1"},
|
||||
NextProtos: []string{"h2", "http/1.1"},
|
||||
}
|
||||
if v.option.ServerName != "" {
|
||||
wsOpts.TLSConfig.ServerName = v.option.ServerName
|
||||
|
|
Loading…
Reference in a new issue