외부 의존성 추가: golang.org/x/net/proxy 및 golang.org/x/time/rate 패키지 vendor 디렉토리에 추가
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m34s
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m34s
This commit is contained in:
18
vendor/github.com/gorilla/websocket/tls_handshake.go
generated
vendored
Normal file
18
vendor/github.com/gorilla/websocket/tls_handshake.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user