mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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;
|
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) {
|
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",
|
Alert("parsing [%s:%d]: custom id has to be unique but is duplicated in %s.\n",
|
||||||
file, linenum, args[1]);
|
file, linenum, args[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user