Skip to content

Commit

Permalink
Print current set of capabilities when receiving SIGHUP and DEBUG_CAP…
Browse files Browse the repository at this point in the history
…S is set to true.

Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Mar 17, 2019
1 parent 4a15b93 commit 35daec4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnsmasq_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35daec4

Please sign in to comment.