MINOR: proxies: Do stage2 initialization for sinks too

In check_config_validity(), we initialize the proxy in several stages.
We do so for the sink list for stage1, but not for stage2. It may not be
needed right now, but it may become needed in the future, so do it
anyway.
This commit is contained in:
Olivier Houchard 2025-04-17 17:16:44 +02:00 committed by Amaury Denoyelle
parent 658eaa4086
commit c4aec7a52f

View File

@ -4308,6 +4308,13 @@ int check_config_validity()
goto init_proxies_list_stage2;
}
if (init_proxies_list == cfg_log_forward) {
init_proxies_list = sink_proxies_list;
/* check if list is not null to avoid infinite loop */
if (init_proxies_list)
goto init_proxies_list_stage2;
}
/*
* Recount currently required checks.
*/