We do not need to invalidate web sessions on CLI changes as we are not serving the web interface in this case
Signed-off-by: Dominik Derigs <dl6er@dl6er.de>
This commit is contained in:
parent
83e2cceda5
commit
cb33ed3d54
|
@ -422,12 +422,6 @@ int set_config_from_CLI(const char *key, const char *value)
|
|||
write_custom_list();
|
||||
}
|
||||
|
||||
|
||||
// Check if this item changed the password, if so, we need to
|
||||
// invalidate all currently active sessions
|
||||
if(conf_item->f & FLAG_INVALIDATE_SESSIONS)
|
||||
delete_all_sessions();
|
||||
|
||||
// Install new configuration
|
||||
replace_config(&newconf);
|
||||
|
||||
|
|
2
src/gc.c
2
src/gc.c
|
@ -375,7 +375,7 @@ void *GC_thread(void *val)
|
|||
{
|
||||
// Reload config
|
||||
log_info("Reloading config due to pihole.toml change");
|
||||
kill(0, SIGHUP);
|
||||
raise(SIGHUP);
|
||||
}
|
||||
|
||||
thread_sleepms(GC, 1000);
|
||||
|
|
|
@ -292,7 +292,7 @@ static void SIGRT_handler(int signum, siginfo_t *si, void *unused)
|
|||
{
|
||||
// Terminate FTL indicating failure
|
||||
exit_code = EXIT_FAILURE;
|
||||
kill(0, SIGTERM);
|
||||
raise(SIGTERM);
|
||||
}
|
||||
else if(rtsig == 3)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue