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:
DL6ER 2023-09-04 21:45:38 +02:00 committed by Dominik Derigs
parent 83e2cceda5
commit cb33ed3d54
No known key found for this signature in database
GPG Key ID: EB33423E35C65949
3 changed files with 2 additions and 8 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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)
{