mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue