Skip to content

Commit c010217

Browse files
authored
Merge pull request #433 from shaunakv1/master
enabled TLS support with preferred config. so when server requests th…
2 parents 6711682 + b688990 commit c010217

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/database/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ func (c Connection) MySQL() string {
2626
config.Addr = fmt.Sprintf("%s:%d", c.Host, c.Port)
2727
}
2828
config.ParseTime = true
29+
config.TLSConfig = "preferred"
2930
return config.FormatDSN()
3031
}

0 commit comments

Comments
 (0)