]> git.kaiwu.me - haproxy.git/commit
[MINOR] acl: detect and report potential mistakes in ACLs
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Jul 2009 17:40:40 +0000 (19:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Jul 2009 17:40:40 +0000 (19:40 +0200)
commit404e8ab4615d564a74f92a0d3822b0292dd6224f
tree00b21179a06b2b01204765ed9325917cddd0f07e
parent43e0e3997870e39b78b87d3050f260571e5a7de9
[MINOR] acl: detect and report potential mistakes in ACLs

I've discovered a configuration with lots of occurrences of the
following :

    acl xxx hdr_beg (host) xxx

The problem is that hdr_beg will match every header against patterns
(host) and xxx due to the space between both, which certainly is not
what the user wanted. Now we detect such ACLs and report a warning
with a suggestion to add "--" between "hdr_beg" and "(host)" if this
is definitely what is wanted.
src/acl.c