MEDIUM: proxy: use global proxy list for REGISTER_POST_PROXY_CHECK() hook

REGISTER_POST_PROXY_CHECK() used to iterate over "main" proxies to run
registered callbacks. This means hidden proxies (and their servers) did
not get a chance to get post-checked and could cause issues if some post-
checks are expected to be executed on all proxies no matter their type.

Instead we now rely on the global proxies list. Another side effect is that
the REGISTER_POST_SERVER_CHECK() now runs as well for servers from proxies
that are not part of the main proxies list.
This commit is contained in:
Aurelien DARRAGON 2025-05-09 16:41:30 +02:00
parent 1f12e45b0a
commit e262e4bbe4

View File

@ -2101,7 +2101,7 @@ static void step_init_2(int argc, char** argv)
clock_adjust_now_offset();
ready_date = date;
for (px = proxies_list; px; px = px->next) {
list_for_each_entry(px, &proxies, global_list) {
struct server *srv;
struct post_proxy_check_fct *ppcf;
struct post_server_check_fct *pscf;