We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InsecureSkipVerify
1 parent 0e90087 commit f31682fCopy full SHA for f31682f
pkg/rpc/drpc.go
@@ -79,9 +79,11 @@ func DialDRPC(
79
}
80
// Clone TLS config to avoid modifying a cached TLS config.
81
tlsConfig = tlsConfig.Clone()
82
- // TODO(server): remove this hack which is necessary at least in
83
- // testing to get TestDRPCSelectQuery to pass.
84
- tlsConfig.InsecureSkipVerify = true
+ sn, _, err := net.SplitHostPort(target)
+ if err != nil {
+ return nil, err
85
+ }
86
+ tlsConfig.ServerName = sn
87
tlsConn := tls.Client(netConn, tlsConfig)
88
conn = drpcconn.NewWithOptions(tlsConn, opts)
89
0 commit comments