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.
This commit is contained in:
Aurelien DARRAGON 2025-04-10 17:07:54 +02:00
parent 5087048b6d
commit 60f45564a1

View File

@ -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;