mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-03 22:02:52 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue