/* warning: this struct is huge, keep it at the bottom */
struct sockaddr_storage addr; /* the address we listen to */
struct {
- const char *file; /* file where the section appears */
- int line; /* line where the section appears */
struct eb32_node id; /* place in the tree of used IDs */
} conf; /* config information */
};
}
new = curproxy->listen;
while (new != last) {
- new->conf.file = file;
- new->conf.line = linenum;
new = new->next;
global.maxsock++;
}
new_listen = curproxy->listen;
while (new_listen != last_listen) {
- new_listen->conf.file = file;
- new_listen->conf.line = linenum;
new_listen->bind_conf = bind_conf;
new_listen = new_listen->next;
global.maxsock++;
if (node) {
l = container_of(node, struct listener, conf.id);
Alert("parsing [%s:%d]: custom id %d for socket '%s' already used at %s:%d.\n",
- file, linenum, l->luid, args[1], l->conf.file, l->conf.line);
+ file, linenum, l->luid, args[1], l->bind_conf->file, l->bind_conf->line);
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}