]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: add the ability to disable a peers section
authorWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 18:02:17 +0000 (20:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 18:16:31 +0000 (20:16 +0200)
commit77e4bd1497802a69fed73feb61cee53f3fbf75a0
tree81cb296da5eaa61e757fcb295e19b8e9878d7cfb
parent6866f3f33f970989843a1dddb71489d9b1ad3e28
MEDIUM: peers: add the ability to disable a peers section

Sometimes it's very hard to disable the use of peers because an empty
section is not valid, so it is necessary to comment out all references
to the section, and not to forget to restore them in the same state
after the operation.

Let's add a "disabled" keyword just like for proxies. A ->state member
in the peers struct is even present for this purpose but was never used
at all.

Maybe it would make sense to backport this to 1.5 as it's really cumbersome
there.
doc/configuration.txt
src/cfgparse.c