mirror of
https://github.com/openwrt/luci.git
synced 2026-10-12 05:07:26 +04:00
luci-app-adblock: sync with release 4.5.7-1
- expose the new 'adb_repfilter' option Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
2 files changed
+13
-2
No files matched your search
@@ -6,8 +6,8 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=LuCI support for Adblock
|
||||
LUCI_DEPENDS:=+luci-base +luci-lib-uqr +adblock
|
||||
|
||||
PKG_VERSION:=4.5.6
|
||||
PKG_RELEASE:=5
|
||||
PKG_VERSION:=4.5.7
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
||||
|
||||
@@ -668,6 +668,17 @@ return view.extend({
|
||||
o.optional = true;
|
||||
o.rmempty = true;
|
||||
|
||||
o = s.taboption('adv_report', form.Value, 'adb_repfilter', _('Report Filter'), _('Optional tcpdump filter expression, logically ANDed to the internal port filter.'));
|
||||
o.placeholder = 'not net 10.0.0.0/24';
|
||||
o.optional = true;
|
||||
o.rmempty = true;
|
||||
o.validate = function (section_id, value) {
|
||||
if (!value || /^[a-zA-Z0-9 \t.:\/()\[\]!&|<>=+*%\\-]+$/.test(value)) {
|
||||
return true;
|
||||
}
|
||||
return _('Invalid characters in the tcpdump filter expression!');
|
||||
};
|
||||
|
||||
o = s.taboption('adv_report', form.Flag, 'adb_represolve', _('Resolve IPs'), _('Resolve reporting IP addresses by using reverse DNS (PTR) lookups.'));
|
||||
o.rmempty = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user