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:
parent
8d2514e087
commit
0d7c1bc6ab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue