mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
MINOR: action: Add a function pointer in act_rule struct to check its validity
It is possible to define the field "act_rule.check_ptr" if you want to check the validity of a tcp/http rule.
This commit is contained in:
parent
4fce0d8447
commit
6d950b92cd
@ -102,6 +102,7 @@ struct act_rule {
|
|||||||
short deny_status; /* HTTP status to return to user when denying */
|
short deny_status; /* HTTP status to return to user when denying */
|
||||||
enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px, /* ptr to custom action */
|
enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px, /* ptr to custom action */
|
||||||
struct session *sess, struct stream *s, int flags);
|
struct session *sess, struct stream *s, int flags);
|
||||||
|
int (*check_ptr)(struct act_rule *rule, struct proxy *px, char **err); /* ptr to check function */
|
||||||
struct action_kw *kw;
|
struct action_kw *kw;
|
||||||
struct applet applet; /* used for the applet registration. */
|
struct applet applet; /* used for the applet registration. */
|
||||||
union {
|
union {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user