diff options
author | Dirk Brenken <dev@brenken.org> | 2020-12-19 22:02:12 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2020-12-20 06:59:59 +0100 |
commit | 22af71e706a7057ffd96e8d9e7205923f1923606 (patch) | |
tree | 11924a2a7253bd20001dd3d206cb2ccbacd4998f /applications/luci-app-adblock/htdocs | |
parent | be49059e4d4ce156cfdf1b0240b05072b495d882 (diff) |
luci-app-adblock: sync with adblock 4.0.8
* made DNS redirect code more flexible
* fix dns backend detection in TurrisOS
* sync translations
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/htdocs')
-rw-r--r-- | applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index 565ae54bfb..146f24a57c 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -290,12 +290,25 @@ return view.extend({ o.nocreate = true; o.rmempty = true; - o = s.taboption('general', form.Flag, 'adb_forcedns', _('Force Local DNS'), _('Redirect all DNS queries from \'lan\' zone to the local DNS resolver, applies to UDP and TCP protocol.')); + o = s.taboption('general', form.Flag, 'adb_forcedns', _('Force Local DNS'), _('Redirect all DNS queries from specified zones to the local DNS resolver, applies to UDP and TCP protocol.')); o.rmempty = false; - o = s.taboption('general', form.Value, 'adb_portlist', _('Local DNS Ports'), _('Space separated list of DNS-related firewall ports which should be forced locally.')); + o = s.taboption('general', widgets.ZoneSelect, 'adb_zonelist', _('Forced Zones'), _('Firewall source zones that should be forced locally.')); o.depends('adb_forcedns', '1'); - o.placeholder = '53 853 5353'; + o.unspecified = true; + o.multiple = true; + o.nocreate = true; + o.rmempty = true; + + o = s.taboption('general', form.DynamicList, 'adb_portlist', _('Forced Ports'), _('Firewall ports that should be forced locally.')); + o.depends('adb_forcedns', '1'); + o.unspecified = true; + o.multiple = true; + o.nocreate = false; + o.datatype = 'port'; + o.value('53'); + o.value('853'); + o.value('5353'); o.rmempty = true; o = s.taboption('general', form.Flag, 'adb_safesearch', _('Enable SafeSearch'), _('Enforcing SafeSearch for google, bing, duckduckgo, yandex, youtube and pixabay.')); @@ -368,11 +381,12 @@ return view.extend({ o.rmempty = true; o = s.taboption('additional', form.ListValue, 'adb_fetchutil', _('Download Utility'), _('List of supported and fully pre-configured download utilities.')); + o.value('', _('- unspecified -')); o.value('uclient-fetch'); o.value('wget'); o.value('curl'); o.value('aria2c'); - o.rmempty = false; + o.rmempty = true; o = s.taboption('additional', form.Value, 'adb_fetchparm', _('Download Parameters'), _('Special config options for the selected download utility.')) o.rmempty = true; @@ -382,12 +396,13 @@ return view.extend({ */ o = s.taboption('adv_dns', form.ListValue, 'adb_dns', _('DNS Backend'), _('List of supported DNS backends with their default list directory. \ To overwrite the default path use the \'DNS Directory\' option.')); + o.value('', _('- unspecified -')); o.value('dnsmasq', _('dnsmasq (/tmp/dnsmasq.d)')); o.value('unbound', _('unbound (/var/lib/unbound)')); o.value('named', _('named (/var/lib/bind)')); o.value('kresd', _('kresd (/etc/kresd)')); o.value('raw', _('raw (/tmp)')); - o.rmempty = false; + o.rmempty = true; o = s.taboption('adv_dns', form.Value, 'adb_dnsdir', _('DNS Directory'), _('Target directory for the generated blocklist \'adb_list.overall\'.')); o.placeholder = '/tmp'; |