]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libstrongswan/plugins/unbound/unbound_resolver.c
lib: All settings use configured namespace
[thirdparty/strongswan.git] / src / libstrongswan / plugins / unbound / unbound_resolver.c
index 42cdbc6cc2d8c02e8e4869a2b5a06a1dc05574e0..745e59d5bd97e0acdc3f3fa594771112c7f134b1 100644 (file)
@@ -97,14 +97,14 @@ resolver_t *unbound_resolver_create(void)
        char *resolv_conf, *trust_anchors, *dlv_anchors;
 
        resolv_conf = lib->settings->get_str(lib->settings,
-                                               "libstrongswan.plugins.unbound.resolv_conf",
-                                               RESOLV_CONF_FILE);
+                                                                               "%s.plugins.unbound.resolv_conf",
+                                                                               RESOLV_CONF_FILE, lib->ns);
        trust_anchors = lib->settings->get_str(lib->settings,
-                                               "libstrongswan.plugins.unbound.trust_anchors",
-                                               TRUST_ANCHOR_FILE);
+                                                                               "%s.plugins.unbound.trust_anchors",
+                                                                               TRUST_ANCHOR_FILE, lib->ns);
        dlv_anchors = lib->settings->get_str(lib->settings,
-                                               "libstrongswan.plugins.unbound.dlv_anchors",
-                                               NULL);
+                                                                               "%s.plugins.unbound.dlv_anchors",
+                                                                               NULL, lib->ns);
 
        INIT(this,
                .public = {