mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 15:34:35 +00:00
MINOR: proto_http: use an "expr" type in place of generic opaque type.
This patch removes the generic opaque type for storing the configuration of the acion "set-src" (HTTP_REQ_ACT_SET_SRC), and use the dedicated type "struct expr"
This commit is contained in:
parent
f8c1dcea01
commit
a002dc9df8
@ -56,6 +56,7 @@ struct act_rule {
|
||||
struct list key; /* pattern to retrieve MAP or ACL key */
|
||||
struct list value; /* pattern to retrieve MAP value */
|
||||
} map;
|
||||
struct sample_expr *expr;
|
||||
struct hlua_rule *hlua_rule;
|
||||
struct {
|
||||
struct sample_expr *expr;
|
||||
|
@ -3679,7 +3679,7 @@ resume_execution:
|
||||
if ((cli_conn = objt_conn(sess->origin)) && conn_ctrl_ready(cli_conn)) {
|
||||
struct sample *smp;
|
||||
|
||||
smp = sample_fetch_as_type(px, sess, s, SMP_OPT_DIR_REQ|SMP_OPT_FINAL, rule->arg.act.p[0], SMP_T_ADDR);
|
||||
smp = sample_fetch_as_type(px, sess, s, SMP_OPT_DIR_REQ|SMP_OPT_FINAL, rule->arg.expr, SMP_T_ADDR);
|
||||
|
||||
if (smp) {
|
||||
if (smp->data.type == SMP_T_IPV4) {
|
||||
@ -9345,7 +9345,7 @@ struct act_rule *parse_http_req_cond(const char **args, const char *file, int li
|
||||
goto out_err;
|
||||
}
|
||||
|
||||
rule->arg.act.p[0] = expr;
|
||||
rule->arg.expr = expr;
|
||||
rule->action = HTTP_REQ_ACT_SET_SRC;
|
||||
} else if (((custom = action_http_req_custom(args[0])) != NULL)) {
|
||||
char *errmsg = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user