Skip to content

Commit b688990

Browse files
committed
enabled TLS support with preferred config. so when server requests the connection is upgraded. fixes #428
1 parent 6711682 commit b688990

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)