BUG/MINOR: server-state: load SRV resolution only if params match the config
When the state of a server is loaded, if there is no hostname defined for
this server and if a fqdn and a server record are retrieved from the state
file, it means the server should rely on a SRV resolution. But we must be
sure the server is configured this way. A SRV resolution must be configured
with the same SRV record. This part must be skipped if there is no SRV
resolution configured for this server or if the SRV record used is not the
same.
This patch should be backported as far as 1.8 after some observation period.
(cherry picked from commit 85af93b8c74b5664fc473cf84d59ce6279249216)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ccb720d3faf0847eefbd1905130fef383efb1e4c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit cc1fc1b8434bd331d4a01b1f9ca6ff805dea3349)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 961d4504e672e16a21c023c5eb13348c0c98a01c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed