mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 05:09:54 +05:00
Ensure RadiusAgent starts properly without session connections
This commit is contained in:
committed by
Dan Christian Bogos
parent
e52778794c
commit
36e43beca8
@@ -371,10 +371,6 @@ func (cfg *CGRConfig) checkConfigSanity() error {
|
||||
}
|
||||
//Radius Agent
|
||||
if cfg.radiusAgentCfg.Enabled {
|
||||
if len(cfg.radiusAgentCfg.SessionSConns) == 0 {
|
||||
return fmt.Errorf("<%s> no %s connections defined",
|
||||
utils.RadiusAgent, utils.SessionS)
|
||||
}
|
||||
for _, connID := range cfg.radiusAgentCfg.SessionSConns {
|
||||
if strings.HasPrefix(connID, utils.MetaInternal) && !cfg.sessionSCfg.Enabled {
|
||||
return fmt.Errorf("<%s> not enabled but requested by <%s> component", utils.SessionS, utils.RadiusAgent)
|
||||
|
||||
Reference in New Issue
Block a user