diff --git a/config/config.go b/config/config.go index 95a88b70b..3b72e9405 100755 --- a/config/config.go +++ b/config/config.go @@ -685,10 +685,10 @@ func (cfg *CGRConfig) checkConfigSanity() error { } } // StorDB sanity checks - if self.storDbCfg.Type == utils.POSTGRES { + if cfg.storDbCfg.Type == utils.POSTGRES { if !utils.IsSliceMember([]string{utils.PostgressSSLModeDisable, utils.PostgressSSLModeAllow, utils.PostgressSSLModePrefer, utils.PostgressSSLModeRequire, utils.PostgressSSLModeVerifyCa, - utils.PostgressSSLModeVerifyFull}, self.storDbCfg.SSLMode) { + utils.PostgressSSLModeVerifyFull}, cfg.storDbCfg.SSLMode) { return fmt.Errorf("<%s> Unsuported sslmode for storDB", utils.StorDB) } }