mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 04:31:49 +02:00
[MINOR] config: report "default-server" instead of "(null)" in error messages
When an error is reported in a default-server entry, we want to have that name in the error message instead of "(null)".
This commit is contained in:
parent
8a8e1d99cb
commit
70160200e0
@ -1118,6 +1118,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
||||
|
||||
/* set default values */
|
||||
memcpy(&curproxy->defsrv, &defproxy.defsrv, sizeof(curproxy->defsrv));
|
||||
curproxy->defsrv.id = "default-server";
|
||||
|
||||
curproxy->state = defproxy.state;
|
||||
curproxy->options = defproxy.options;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user