lib: All settings use configured namespace

This commit is contained in:
Tobias Brunner
2014-02-12 14:34:32 +01:00
parent 7a684aece4
commit 8dc6e71632
24 changed files with 196 additions and 196 deletions
+4 -4
View File
@@ -355,11 +355,11 @@ host_resolver_t *host_resolver_create()
);
this->min_threads = max(0, lib->settings->get_int(lib->settings,
"libstrongswan.host_resolver.min_threads",
MIN_THREADS_DEFAULT));
"%s.host_resolver.min_threads",
MIN_THREADS_DEFAULT, lib->ns));
this->max_threads = max(this->min_threads ?: 1,
lib->settings->get_int(lib->settings,
"libstrongswan.host_resolver.max_threads",
MAX_THREADS_DEFAULT));
"%s.host_resolver.max_threads",
MAX_THREADS_DEFAULT, lib->ns));
return &this->public;
}