]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: flt_spoe: mark spoe agent frontend as internal
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 10 Apr 2025 15:07:54 +0000 (17:07 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 10 Apr 2025 20:10:31 +0000 (22:10 +0200)
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.

src/flt_spoe.c

index 1e9fd8a6807679d518b4f4f2bff67ed887409f53..142d7415e9bc94ffffeee6ea6f28f9d3dc97a1c7 100644 (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;