]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: relax use_backend check to make the condition optional
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 23:21:56 +0000 (01:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 23:21:56 +0000 (01:21 +0200)
commitf51658dac41f48f47e76be3215b2bf38e625e4b0
treec6aa428784a53419a6a8a6b9260b06088f67c89d
parent74774c0f8645d792a8a1dc439a75cd05abffea66
MEDIUM: config: relax use_backend check to make the condition optional

Since it became possible to use log-format expressions in use_backend,
having a mandatory condition becomes annoying because configurations
are full of "if TRUE". Let's relax the check to accept no condition
like many other keywords (eg: redirect).
doc/configuration.txt
src/cfgparse.c
src/haproxy.c
src/session.c