diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-10-31 13:42:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 13:42:43 +0100 |
commit | 30e32071c3dd29f691dc5770c8e2253d9fdd968e (patch) | |
tree | 1b5e08db924cbd7af5c18325fe32fd66d499a90e /applications | |
parent | b5270bea47c12374cc731c0999252afba62d14da (diff) | |
parent | fce70a08ccb5d489a8625f86b78ed33cad386e6b (diff) |
Merge pull request #5472 from avin3sh/feature_luci-app-unbound_handle_nil
luci-app-unbound: fix error on empty leasetrigger
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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"), |