mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-07 17:51:45 +00:00
BUG/MINOR: resolvers: Reset server IP when no ip is found in the response
For A/AAAA resolution, if no ip is found for a server in the response, the server is set to RMAINT status. However, its address must also be reset. Otherwise, it is still reported by the cli on "show servers state" commands. This may be confusing. This patch may be backported as far as 2.0.
This commit is contained in:
parent
d7bb23490c
commit
a8ce497aac
@ -3436,8 +3436,8 @@ int snr_resolution_cb(struct resolv_requester *requester, struct dns_counters *c
|
||||
srv_update_addr(s, firstip, firstip_sin_family, (char *) chk->area);
|
||||
|
||||
update_status:
|
||||
|
||||
snr_update_srv_status(s, has_no_ip);
|
||||
if (!snr_update_srv_status(s, has_no_ip) && has_no_ip)
|
||||
memset(&s->addr, 0, sizeof(s->addr));
|
||||
return 1;
|
||||
|
||||
invalid:
|
||||
|
Loading…
Reference in New Issue
Block a user