goto out;
}
+ if ((bind_conf->options & BC_O_REVERSE_HTTP) && !kw->rhttp_ok) {
+ ha_alert("'%s' option is not accepted for reverse HTTP\n",
+ args[cur_arg]);
+ err_code |= ERR_ALERT | ERR_FATAL;
+ goto out;
+ }
+
code = kw->parse(args, cur_arg, bind_conf->frontend, bind_conf, &err);
err_code |= code;
* not enabled.
*/
static struct bind_kw_list bind_kws = { "ALL", { }, {
- { "accept-netscaler-cip", bind_parse_accept_netscaler_cip, 1 }, /* enable NetScaler Client IP insertion protocol */
- { "accept-proxy", bind_parse_accept_proxy, 0 }, /* enable PROXY protocol */
- { "backlog", bind_parse_backlog, 1 }, /* set backlog of listening socket */
- { "id", bind_parse_id, 1 }, /* set id of listening socket */
- { "maxconn", bind_parse_maxconn, 1 }, /* set maxconn of listening socket */
- { "name", bind_parse_name, 1 }, /* set name of listening socket */
- { "nbconn", bind_parse_nbconn, 1 }, /* set number of connection on active preconnect */
- { "nice", bind_parse_nice, 1 }, /* set nice of listening socket */
- { "process", bind_parse_process, 1 }, /* set list of allowed process for this socket */
- { "proto", bind_parse_proto, 1 }, /* set the proto to use for all incoming connections */
- { "shards", bind_parse_shards, 1 }, /* set number of shards */
- { "thread", bind_parse_thread, 1 }, /* set list of allowed threads for this socket */
+ { "accept-netscaler-cip", bind_parse_accept_netscaler_cip, 1, 0 }, /* enable NetScaler Client IP insertion protocol */
+ { "accept-proxy", bind_parse_accept_proxy, 0, 0 }, /* enable PROXY protocol */
+ { "backlog", bind_parse_backlog, 1, 0 }, /* set backlog of listening socket */
+ { "id", bind_parse_id, 1, 1 }, /* set id of listening socket */
+ { "maxconn", bind_parse_maxconn, 1, 0 }, /* set maxconn of listening socket */
+ { "name", bind_parse_name, 1, 1 }, /* set name of listening socket */
+ { "nbconn", bind_parse_nbconn, 1, 1 }, /* set number of connection on active preconnect */
+ { "nice", bind_parse_nice, 1, 0 }, /* set nice of listening socket */
+ { "process", bind_parse_process, 1, 0 }, /* set list of allowed process for this socket */
+ { "proto", bind_parse_proto, 1, 0 }, /* set the proto to use for all incoming connections */
+ { "shards", bind_parse_shards, 1, 0 }, /* set number of shards */
+ { "thread", bind_parse_thread, 1, 0 }, /* set list of allowed threads for this socket */
{ /* END */ },
}};