]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Fri, 12 Mar 2021 15:43:37 +0000 (16:43 +0100)
commitab177ac1f31b5c6c2e4f7d023923dd668cce3076
tree037cb31231c31fa3dea2f7f21039c3707e4e605f
parentbca680ba90787fc57b9711e268f6fb0c74e7e49c
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.
src/resolvers.c