luci-app-adblock: support adb_fetchttl option
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 26 May 2016 16:01:12 +0000 (19:01 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 4 Jun 2016 07:45:37 +0000 (10:45 +0300)
Support adb_fetchttl options from adblock 1.1.15

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit c46963613f7f1312dac62e507346777ba6f8d8a6)

applications/luci-app-adblock/luasrc/model/cbi/adblock.lua

index 0f96ffb30a0bace33309d13bec379fefe24145f9..c8af73a431b34d9ae8deb729bd2ddc994ba2b352 100644 (file)
@@ -74,6 +74,11 @@ a3.optional = true
 a3.default = "::ffff:c000:0201"
 a3.datatype = "ip6addr"
 
+a4 = e:option(Value, "adb_fetchttl", translate("Timeout for blocklist fetch (seconds)"))
+a4.optional = true
+a4.default = 5
+a4.datatype = "range(2,60)"
+
 a7 = e:option(Value, "adb_lanif", translate("Name of the logical lan interface"))
 a7.optional = true
 a7.default = "lan"