From: Willy Tarreau Date: Fri, 20 May 2022 13:52:31 +0000 (+0200) Subject: MINOR: listener: add a new "options" entry in bind_conf X-Git-Tag: v2.6-dev11~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c694471b2149e97e4f49c1742ffb17cbdb330ac4;p=thirdparty%2Fhaproxy.git MINOR: listener: add a new "options" entry in bind_conf There is no way to store useful info there, yet there's about one entry per boolean. Let's add an "options" attribute which will collect various options. In practice, even the BC_O_SSL_* flags and a few info such as strict_sni could move there. --- diff --git a/include/haproxy/listener-t.h b/include/haproxy/listener-t.h index 3f0ea5833e..f22f3b2fcf 100644 --- a/include/haproxy/listener-t.h +++ b/include/haproxy/listener-t.h @@ -176,6 +176,7 @@ struct bind_conf { struct proxy *frontend; /* the frontend all these listeners belong to, or NULL */ const struct mux_proto_list *mux_proto; /* the mux to use for all incoming connections (specified by the "proto" keyword) */ struct xprt_ops *xprt; /* transport-layer operations for all listeners */ + uint options; /* set of BC_O_* flags */ int is_ssl; /* SSL is required for these listeners */ int generate_certs; /* 1 if generate-certificates option is set, else 0 */ int level; /* stats access level (ACCESS_LVL_*) */