Skip to content

Commit

Permalink
Add comment to UseSslOption
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Jan 23, 2025
1 parent a58c93e commit 64b4064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/driver_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
// The value represents the query string parameter value supplied by in the DNS.
type DriverOption func(c *client.Conn, value string) error

// UseSslOption sets the connection to use a tls.Config with InsecureSkipVerify set to true.
// Use SetTLSConfig() if you need a custom tls.Config
func UseSslOption(c *client.Conn) error {
c.UseSSL(true)
return nil
Expand Down

0 comments on commit 64b4064

Please sign in to comment.