bump: upgrade gorilla/websocket from v1.4.2 to v1.5.0

This commit is contained in:
guangli.bao
2023-09-07 22:27:58 +08:00
parent 58ce734223
commit 93d93258b1
43 changed files with 194 additions and 229 deletions

21
vendor/github.com/gorilla/websocket/tls_handshake.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
//go:build go1.17
// +build go1.17
package websocket
import (
"context"
"crypto/tls"
)
func doHandshake(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config) error {
if err := tlsConn.HandshakeContext(ctx); err != nil {
return err
}
if !cfg.InsecureSkipVerify {
if err := tlsConn.VerifyHostname(cfg.ServerName); err != nil {
return err
}
}
return nil
}