MINOR: config: add predicates "streq()" and "strneq()" to conditional expressions
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 14:10:09 +0000 (16:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 15:02:36 +0000 (17:02 +0200)
commit6492e87b0ec24c2320927a16d742528349da7e2d
tree9d57cf595edfa3810879352a62c71e6217ea41b2
parent42ed14b529ee090a5e98631a054df36a4695bd7c
MINOR: config: add predicates "streq()" and "strneq()" to conditional expressions

"streq(str1,str2)" will return true if the two strings match while
"strneq(str1,str2)" will return true only if they differ. This is
convenient to match an environment variable against a predefined value.
doc/configuration.txt
src/cfgparse.c