]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
prefill: fix ca_file to actually expect file and not a directory
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 9 May 2018 16:42:28 +0000 (18:42 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 9 May 2018 16:42:28 +0000 (18:42 +0200)
This was leftover from an old version which used directory with
certificates instead of bundle in single file.

Related: !511

modules/prefill/prefill.lua

index d1c372e80fa9973de73568f9124e3324d509eb9b..c573ed9e8e75473e0829f3b3ff81bca6e3786a4b 100644 (file)
@@ -168,10 +168,7 @@ local function config_zone(zone_cfg)
 
        if not zone_cfg.ca_file then
                error('[prefill] option ca_file must point '
-                       .. 'to a directory with CA certificates in PEM format')
-       else
-               local _, dir_obj = lfs.dir(zone_cfg.ca_file)
-               dir_obj:close()
+                       .. 'to a file with CA certificate(s) in PEM format')
        end
        rz_ca_file = zone_cfg.ca_file