Skip to content

Commit

Permalink
Fix missed connOption when exporting ConnOption type (#238)
Browse files Browse the repository at this point in the history
Follow up on #202

Signed-off-by: Levko Kravets <[email protected]>
  • Loading branch information
kravets-levko authored Jul 30, 2024
1 parent f0e3a08 commit fe1beea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func WithSessionParams(params map[string]string) ConnOption {
// WARNING:
// When this option is used, TLS is susceptible to machine-in-the-middle attacks.
// Please only use this option when the hostname is an internal private link hostname
func WithSkipTLSHostVerify() connOption {
func WithSkipTLSHostVerify() ConnOption {
return func(c *config.Config) {
if c.TLSConfig == nil {
c.TLSConfig = &tls.Config{MinVersion: tls.VersionTLS12, InsecureSkipVerify: true} // #nosec G402
Expand Down

0 comments on commit fe1beea

Please sign in to comment.