On Tue, Dec 17, 2013 at 04:28:18AM +0800, Igor wrote:
> acl adb url_reg,lower -f /etc/haproxy/long.lst
Interesting, indeed it returns :
[ALERT] 349/215409 (2334) : parsing [test.cfg:9] : error detected while parsing
ACL 'adb' : unknown fetch method 'url_reg' in ACL expression 'url_reg,lower'.
> Did I use this in a wrong way?
No, it's a case we forgot about : this ACL takes no argument,
and since find_acl_kw() stops at the opening parenthesis only,
it looks for "url_reg,lower" as the ACL keyword. It's only this
way because url_reg() is ACL-only, it's not a sample fetch
function.
You can workaround this by passing an empty argument to force the
parser to stop after "url_reg" :
acl adb url_reg(),lower -f /etc/haproxy/long.lst
I've just pushed a fix anyway :-)
Thanks,
Willy