libcharon: Use lib->ns instead of charon->name
This commit is contained in:
@@ -157,7 +157,7 @@ whitelist_control_t *whitelist_control_create(whitelist_listener_t *listener)
|
||||
|
||||
uri = lib->settings->get_str(lib->settings,
|
||||
"%s.plugins.whitelist.socket", "unix://" WHITELIST_SOCKET,
|
||||
charon->name);
|
||||
lib->ns);
|
||||
this->service = lib->streams->create_service(lib->streams, uri, 10);
|
||||
if (!this->service)
|
||||
{
|
||||
|
||||
@@ -206,7 +206,7 @@ whitelist_listener_t *whitelist_listener_create()
|
||||
.ids = hashtable_create((hashtable_hash_t)hash,
|
||||
(hashtable_equals_t)equals, 32),
|
||||
.enabled = lib->settings->get_bool(lib->settings,
|
||||
"%s.plugins.whitelist.enable", FALSE, charon->name),
|
||||
"%s.plugins.whitelist.enable", FALSE, lib->ns),
|
||||
);
|
||||
|
||||
return &this->public;
|
||||
|
||||
Reference in New Issue
Block a user