settings: Use strongswan.conf used during library initialization for reload
Since 4b670a20 we require an explicit strongswan.conf to re-load configurations.
However, the define was missing in the build, breaking SIGHUP based config
reloading.
Fixes #651.
This commit is contained in:
@@ -126,15 +126,12 @@ static int run()
|
||||
{
|
||||
DBG1(DBG_DMN, "signal of type SIGHUP received. Reloading "
|
||||
"configuration");
|
||||
#ifdef STRONGSWAN_CONF
|
||||
if (lib->settings->load_files(lib->settings, STRONGSWAN_CONF,
|
||||
FALSE))
|
||||
if (lib->settings->load_files(lib->settings, lib->conf, FALSE))
|
||||
{
|
||||
charon->load_loggers(charon, levels, TRUE);
|
||||
lib->plugins->reload(lib->plugins, NULL);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
DBG1(DBG_DMN, "reloading config failed, keeping old");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user