]> git.kaiwu.me - haproxy.git/commit
[PATCH]: Check for duplicated conflicting proxies
authorKrzysztof Oledzki <ole@ans.pl>
Sun, 21 Oct 2007 00:55:17 +0000 (02:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Oct 2007 07:52:47 +0000 (08:52 +0100)
commit9dbe41b7d54bb850bedb6d99d7ee3048e403109d
tree9581da5e825adbe5f999d057784b7061490823f0
parentfeb628b3b1326554dd5ea28ac362d15cd3f5af19
[PATCH]: Check for duplicated conflicting proxies

Currently haproxy accepts a config with duplicated proxies
(listen/fronted/backed/ruleset). This patch fix this, so the application
will complain when there is an error.

With this modification it is still possible to use the same name for two
proxies (for example frontend&backend) as long there is no conflict:

                 listen backend frontend ruleset
listen             -      -       -        -
backend            -      -       OK       -
frontend           -      OK      -        -
ruleset            -      -       -        -

Best regards,

  Krzysztof Oledzki
(cherry picked from commit 365d1cd84c5e44129a706629815f2721277c125f)
src/cfgparse.c