]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: add a true list containing all proxies
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 9 May 2025 14:02:09 +0000 (16:02 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jun 2025 15:51:21 +0000 (17:51 +0200)
commit943958c3ff042d24331f6ca872440cec8d2e13f8
treee852d3620f2196d46743964b496a52b039555935
parent6ccf770fe2cae4bea588e93947c87795d9f6f35f
MINOR: proxy: add a true list containing all proxies

We have global proxies_list pointer which is announced as the list of
"all existing proxies", but in fact it only represents regular proxies
declared on the config file through "listen, frontend or backend" keywords

It is ambiguous, and we currently don't have a straightforwrd method to
iterate over all proxies (either public or internal ones) within haproxy

Instead we still have to manually iterate over multiple lists (main
proxies, log-forward proxies, peer proxies..) which is error-prone.

In this patch we add a struct list member (8 bytes) inside struct proxy
in order to store every proxy (except default ones) within a global
"proxies" list which is actually representative for all proxies existing
under haproxy process, like we already have for servers.
include/haproxy/proxy-t.h
include/haproxy/proxy.h
src/proxy.c