lib: Add default config fallback for configured namespace
All settings in the configured global namespace fall back to libstrongswan.
This commit is contained in:
1 parent
dbed07782b
commit
7a684aece4
1 file changed
+3
@@ -293,6 +293,9 @@ bool library_init(char *settings, const char *namespace)
|
||||
this->objects = hashtable_create((hashtable_hash_t)hash,
|
||||
(hashtable_equals_t)equals, 4);
|
||||
this->public.settings = settings_create(settings);
|
||||
/* all namespace settings may fall back to libstrongswan */
|
||||
lib->settings->add_fallback(lib->settings, lib->ns, "libstrongswan");
|
||||
|
||||
this->public.hosts = host_resolver_create();
|
||||
this->public.proposal = proposal_keywords_create();
|
||||
this->public.caps = capabilities_create();
|
||||
|
||||
Reference in new issue
Block a user