]> git.ipfire.org Git - thirdparty/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>
Sun, 21 Oct 2007 08:16:27 +0000 (10:16 +0200)
commit365d1cd84c5e44129a706629815f2721277c125f
treedb9ddada1d29636179a056e1ec03daa6bae83301
parentd4e1b5ffa570e1a0019af3534d5923a6665c7419
[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
src/cfgparse.c