correct TLS enabled check

This commit is contained in:
kcrodgers24 2022-01-06 09:29:03 -08:00
parent 2469d7e61c
commit 5dfca76fbb

View file

@ -557,7 +557,7 @@ func (m *Command) SetupServer() error {
m.Config.Postgres.Bind = ""
// TLS must be enabled if auth is
if m.Config.TLS.CertificatePath == "" || m.Config.TLS.CertificateKeyPath == "" || m.Config.TLS.CACertPath == "" {
if m.Config.TLS.CertificatePath == "" || m.Config.TLS.CertificateKeyPath == "" {
return fmt.Errorf("transport layer security (TLS) is not configured properly. TLS is required when AuthN/Z is enabled, current configuration: %v", m.Config.TLS)
}