From fce70a08ccb5d489a8625f86b78ed33cad386e6b Mon Sep 17 00:00:00 2001 From: Avinesh Singh Date: Sat, 30 Oct 2021 14:25:13 +0530 Subject: [PATCH] luci-app-unbound: fix error on empty leasetrigger Signed-off-by: Avinesh Singh --- .../luci-app-unbound/luasrc/model/cbi/unbound/configure.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua index a1b3661536..acbd7c2aed 100644 --- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua +++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua @@ -19,7 +19,7 @@ local ds = require "luci.dispatcher" local ucl = luci.model.uci.cursor() local valman = ucl:get_first("unbound", "unbound", "manual_conf") local dhcplk = ucl:get_first("unbound", "unbound", "dhcp_link") -local lstrig = ucl:get_first("dhcp", "odhcpd", "leasetrigger") +local lstrig = ucl:get_first("dhcp", "odhcpd", "leasetrigger") or "undefined" m1 = Map("unbound") s1 = m1:section(TypedSection, "unbound", translate("Recursive DNS"), -- 2.30.2