Skip to content

Commit

Permalink
Restart FTL to enforce flushing the cache when dns.piholePTR is changed
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Sep 26, 2024
1 parent cb8e8b0 commit 89a6c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
{
Expand All @@ -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";
Expand Down

0 comments on commit 89a6c24

Please sign in to comment.