MEDIUM: dns: Add resolve-opts "ignore-weight"
authorDaniel Corbett <dcorbett@haproxy.com>
Sun, 17 Nov 2019 14:48:56 +0000 (09:48 -0500)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2019 16:25:31 +0000 (17:25 +0100)
commitf8716914c744e447fc93b8228fa9915b5e600c79
treeae5569755f630e655ddd1416dd602c95b0fbad11
parent64a18534e3725df27822a4077efd57a4aaa18aa2
MEDIUM: dns: Add resolve-opts "ignore-weight"

It was noted in #48 that there are times when a configuration
may use the server-template directive with SRV records and
simultaneously want to control weights using an agent-check or
through the runtime api.  This patch adds a new option
"ignore-weight" to the "resolve-opts" directive.

When specified, any weight indicated within an SRV record will
be ignored.  This is for both initial resolution and ongoing
resolution.
doc/configuration.txt
include/types/dns.h
src/dns.c
src/server.c