]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init: make -cc support environment variables expansion
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:14:54 +0000 (19:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commita87e782a2dfb0837e863867a5e3361143eaede9b
treebe462634f68594bd2fe2639c8416b6a7fe89980c
parent7edc0fde0568d1dafef2aeffd7b5960bb019665c
MINOR: init: make -cc support environment variables expansion

I found myself a few times testing some conditoin examples from the doc
against command line's "-cc" to see that they didn't work with environment
variables expansion. Not being documented as being on purpose it looks like
a miss, so let's add PARSE_OPT_ENV and PARSE_OPT_WORD_EXPAND to be able to
test for example -cc "streq(${WITH_SSL},yes)" to help debug expressions.
src/haproxy.c