BUG/MINOR: server: Don't reset resolver options on a new default-server line

When a new "default-server" line is parsed, some resolver options are reset.
Thus previously defined default options cannot be inherited. There is no
reason to do so. First because other server options are inherited. And then
because not all resolver options are reset. It is not consistent.

This patch should fix issue #2559. It should be backported to all stable
versions.
This commit is contained in:
Christopher Faulet 2024-05-24 16:30:59 +02:00
parent 8d2514e087
commit 0d7c1bc6ab
1 changed files with 0 additions and 2 deletions

View File

@ -3459,8 +3459,6 @@ static int _srv_parse_init(struct server **srv, char **args, int *cur_arg,
else {
*srv = newsrv = &curproxy->defsrv;
*cur_arg = 1;
newsrv->resolv_opts.family_prio = AF_INET6;
newsrv->resolv_opts.accept_duplicate_ip = 0;
}
free(fqdn);