From b7298bed1ed7ea6372dc709b542fd0c6b5f8ab71 Mon Sep 17 00:00:00 2001 From: Silvan Date: Mon, 6 Jul 2020 10:00:26 +0200 Subject: [PATCH] fix(sql): ssl check for empty mode (#345) --- internal/config/types/sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/types/sql.go b/internal/config/types/sql.go index 0792159913..de98cc21eb 100644 --- a/internal/config/types/sql.go +++ b/internal/config/types/sql.go @@ -63,7 +63,7 @@ func (s *SQL) Start() (*sql.DB, error) { } 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} return }