MINOR: set the CO_FL_ADDR_FROM_SET flags with 'set-src'
When the 'set-src' action is used, the CO_FL_ADDR_FROM_SET wasn't set, it can lead to address being rewritten.
This commit is contained in:
parent
2e785f23cb
commit
01252ed53c
|
@ -1448,6 +1448,7 @@ enum act_return tcp_action_req_set_src(struct act_rule *rule, struct proxy *px,
|
|||
((struct sockaddr_in6 *)&cli_conn->addr.from)->sin6_port = 0;
|
||||
}
|
||||
}
|
||||
cli_conn->flags |= CO_FL_ADDR_FROM_SET;
|
||||
}
|
||||
return ACT_RET_CONT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue