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:
Dirk Brenken committed 2026-08-02 20:35:15 +02:00
1 parent 3fb9db3869
commit d8737b3c0f
2 files changed
+13 -2

No files matched your search

+2 -2
View File
@@ -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;