diff options
Diffstat (limited to 'modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua')
-rw-r--r-- | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua index 8841d1ff82..0743ece978 100644 --- a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua +++ b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua @@ -30,15 +30,15 @@ limit:depends("ignore", "0") function limit.cfgvalue(self, section) local value = Value.cfgvalue(self, section) - + if value then return tonumber(value) + 1 - end + end end function limit.write(self, section, value) value = tonumber(value) - 1 - return Value.write(self, section, value) + return Value.write(self, section, value) end limit.rmempty = true @@ -53,7 +53,7 @@ uci:foreach("dhcp", "dnsmasq", function(section) leasefn = section.leasefile end -) +) local leasefp = leasefn and fs.access(leasefn) and io.lines(leasefn) if leasefp then leases = {} |