]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: Be sure to renew IP address for already known servers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2020 08:27:24 +0000 (10:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2020 08:44:57 +0000 (10:44 +0200)
commitd6c6b5f43ba92524369f49976b8f40e5b8edd3cf
tree6df33925fb4396158e74555032c61e33c23837f6
parent5a89175ac86623e57dfa9688663ca52b2fee9ffb
BUG/MEDIUM: dns: Be sure to renew IP address for already known servers

When a SRV record for an already known server is processed, only the weight is
updated, if not configured to be ignored. It is a problem if the IP address
carried by the associated additional record changes. Because the server IP
address is never renewed.

To fix this bug, If there is an addition record attached to a SRV record, we
always try to set the IP address. If it is the same, no change is
performed. This way, IP changes are always handled.

This patch should fix the issue #841. It must be backported to 2.2.
src/dns.c
src/server.c