fix(sql): ssl check for empty mode (#345)

This commit is contained in:
Silvan 2020-07-06 10:00:26 +02:00 committed by GitHub
parent 73a4b7baef
commit b7298bed1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ func (s *SQL) Start() (*sql.DB, error) {
} }
func (s *SQL) checkSSL() { func (s *SQL) checkSSL() {
if s.SSL == nil || s.SSL.Mode == sslDisabledMode { if s.SSL == nil || s.SSL.Mode == sslDisabledMode || s.SSL.Mode == "" {
s.SSL = &ssl{Mode: sslDisabledMode} s.SSL = &ssl{Mode: sslDisabledMode}
return return
} }