From 89a6c24caa769e275d4e1359287a8e1c87cdf4a3 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 26 Sep 2024 18:19:27 +0200 Subject: [PATCH] Restart FTL to enforce flushing the cache when dns.piholePTR is changed Signed-off-by: DL6ER --- src/config/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/config.c b/src/config/config.c index b984af708..5cf9a8377 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -442,7 +442,7 @@ static void initConfig(struct config *conf) conf->dns.analyzeOnlyAandAAAA.c = validate_stub; // Only type-based checking conf->dns.piholePTR.k = "dns.piholePTR"; - conf->dns.piholePTR.h = "Controls whether and how FTL will reply with for address for which a local interface exists."; + conf->dns.piholePTR.h = "Controls whether and how FTL will reply with for address for which a local interface exists. Changing this setting causes FTL to restart."; { struct enum_options piholePTR[] = { @@ -455,6 +455,7 @@ static void initConfig(struct config *conf) } conf->dns.piholePTR.t = CONF_ENUM_PTR_TYPE; conf->dns.piholePTR.d.ptr_type = PTR_PIHOLE; + conf->dns.piholePTR.f = FLAG_RESTART_FTL; conf->dns.piholePTR.c = validate_stub; // Only type-based checking conf->dns.replyWhenBusy.k = "dns.replyWhenBusy";