From: Aurelien DARRAGON Date: Thu, 10 Apr 2025 15:07:54 +0000 (+0200) Subject: MINOR: flt_spoe: mark spoe agent frontend as internal X-Git-Tag: v3.2-dev10~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60f45564a113717c95e5e2ea4309df9f6b942c9c;p=thirdparty%2Fhaproxy.git MINOR: flt_spoe: mark spoe agent frontend as internal spoe agent frontend is used by the agent internally, but it is not meant to be directly exposed like user-facing proxies defined in the config. As such, better mark it as internal using PR_CAP_INT capability to prevent any mis-use. --- diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 1e9fd8a68..142d7415e 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -1205,7 +1205,7 @@ static int spoe_init(struct proxy *px, struct flt_conf *fconf) /* conf->agent->fe was already initialized during the config * parsing. Finish initialization. */ conf->agent->fe.fe_counters.last_change = ns_to_sec(now_ns); - conf->agent->fe.cap = PR_CAP_FE; + conf->agent->fe.cap = PR_CAP_FE | PR_CAP_INT; conf->agent->fe.mode = PR_MODE_SPOP; conf->agent->fe.maxconn = 0; conf->agent->fe.options2 |= PR_O2_INDEPSTR;