BUG/MEDIUM: resolvers: Don't set an address-less server as UP
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 14:34:52 +0000 (15:34 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:11:11 +0000 (09:11 +0100)
commit1ec9077f8678dcf13ef89b57e8afccbf63e4e140
tree687609920a56cda1c139bf074c333bab603d7f0b
parent833937da99caf3639e67a14409095a402ea2f0b2
BUG/MEDIUM: resolvers: Don't set an address-less server as UP

when a server status is updated based on a SRV item, it is always set to UP,
regardless it has an IP address defined or not. For instance, if only a SRV
item is received, with no additional record, only the server hostname is
defined. We must wait to have an IP address to set the server as UP.

This patch must be backported as far as 2.2.

(cherry picked from commit ab177ac1f31b5c6c2e4f7d023923dd668cce3076)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c