changeset 14229:ce31fdde0ad1 default tip

net.unbound: Simplify conditional
author Kim Alvefur <zash@zash.se>
date Sat, 13 Jun 2026 11:35:18 +0200
parents 84a72e9cb610
children
files net/unbound.lua
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/net/unbound.lua	Fri Jun 12 23:09:09 2026 +0200
+++ b/net/unbound.lua	Sat Jun 13 11:35:18 2026 +0200
@@ -51,10 +51,8 @@
 	if use_dnssec == false then
 		conf["trustfile"] = nil;
 		conf["trusted"] = nil;
-	elseif use_dnssec ~= false then
-		if conf["trustfile"] == nil and conf["trusted"] == nil then
-			conf["trustfile"] = trustfile;
-		end
+	elseif conf["trustfile"] == nil and conf["trusted"] == nil then
+		conf["trustfile"] = trustfile;
 	end
 	return conf;
 end