From f8716914c744e447fc93b8228fa9915b5e600c79 Mon Sep 17 00:00:00 2001 From: Daniel Corbett Date: Sun, 17 Nov 2019 09:48:56 -0500 Subject: [PATCH] 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 | 5 +++++ include/types/dns.h | 1 + src/dns.c | 21 ++++++++++++--------- src/server.c | 6 +++++- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 463d17275..2407fcb01 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11931,6 +11931,11 @@ resolve-opts