mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 22:37:27 +00:00
[BUG] config: look for ID conflicts in all sockets, not only last ones.
ID conflicts between 'bind' lines were not detected due to this typo.
This commit is contained in:
parent
aeebf9ba65
commit
9d7e335127
@ -1180,7 +1180,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
||||
goto out;
|
||||
}
|
||||
|
||||
for (l = curproxy->listen; l != last_listen; l = l->next)
|
||||
for (l = curproxy->listen; l; l = l->next)
|
||||
if (curproxy->listen != l && l->luid == curproxy->listen->luid) {
|
||||
Alert("parsing [%s:%d]: custom id has to be unique but is duplicated in %s.\n",
|
||||
file, linenum, args[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user