From c2a2df8a77fbca30738a47879a5dff6ce0c01b2a 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 ++- test/pihole.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/config.c b/src/config/config.c index b984af70..5cf9a837 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"; diff --git a/test/pihole.toml b/test/pihole.toml index e03fd65d..e30dedb6 100644 --- a/test/pihole.toml +++ b/test/pihole.toml @@ -47,7 +47,7 @@ analyzeOnlyAandAAAA = false # Controls whether and how FTL will reply with for address for which a local interface - # exists. + # exists. Changing this setting causes FTL to restart. # # Possible values are: # - "NONE"