From 35daec46d67116669d00d66ff588609e7852adc6 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 17 Mar 2019 15:35:45 +0100 Subject: [PATCH] Print current set of capabilities when receiving SIGHUP and DEBUG_CAPS is set to true. Signed-off-by: DL6ER --- dnsmasq_interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnsmasq_interface.c b/dnsmasq_interface.c index 7b396cc49..690c8e0fb 100644 --- a/dnsmasq_interface.c +++ b/dnsmasq_interface.c @@ -382,6 +382,10 @@ void FTL_dnsmasq_reload(void) // Reread pihole-FTL.conf to see which debugging flags are set read_debuging_settings(NULL); + + // Print current set of capabilities if requested via debug flag + if(config.debug & DEBUG_CAPS) + check_capabilities(); } void _FTL_reply(unsigned short flags, char *name, struct all_addr *addr, int id, const char* file, const int line)