diff options
author | Dirk Brenken <dev@brenken.org> | 2024-03-02 09:33:39 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2024-03-02 09:33:39 +0100 |
commit | 85c0429651b09a75195bb583506decf07fa9b7bf (patch) | |
tree | e07383cebc27a3a129ee886292ecbd09ca4bec4a /applications/luci-app-banip/htdocs/luci-static/resources/view/banip | |
parent | 50846d90feedc409dee50fa72cb293edbbd04bd0 (diff) |
luci-app-banip: sync with release 0.9.4-1
* small changes to support the new destination port & protocol options in the feed editor and in the reporting engine
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static/resources/view/banip')
-rw-r--r-- | applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js | 3 | ||||
-rw-r--r-- | applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js index 0e4e682986..e6704efdca 100644 --- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js +++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js @@ -236,12 +236,11 @@ return view.extend({ } o = s.option(form.Value, 'flag', _('Flag')); - o.datatype = 'and(minlength(2),maxlength(2))'; o.validate = function (section_id, value) { if (!value) { return true; } - if (!value.match(/^gz$/)) { + if (!value.match(/^(\bgz\b|\btcp\b|\budp\b|\b[0-9\-]+\b| )*$/)) { return _('Flag not supported'); } return true; diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js index 97d8e2b243..02865335a7 100644 --- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js +++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js @@ -155,7 +155,8 @@ return view.extend({ E('th', { 'class': 'th right', 'style': 'padding-right: 20px' }, _('Elements')), E('th', { 'class': 'th' }, _('WAN-Input (packets)')), E('th', { 'class': 'th' }, _('WAN-Forward (packets)')), - E('th', { 'class': 'th' }, _('LAN-Forward (packets)')) + E('th', { 'class': 'th' }, _('LAN-Forward (packets)')), + E('th', { 'class': 'th' }, _('Port/Protocol Limit')) ]) ]); @@ -170,7 +171,8 @@ return view.extend({ E('em', { 'style': 'padding-right: 20px' }, content.sets[key].cnt_elements), E('em', content.sets[key].input + cnt1), E('em', content.sets[key].wan_forward + cnt2), - E('em', content.sets[key].lan_forward + cnt3) + E('em', content.sets[key].lan_forward + cnt3), + E('em', content.sets[key].port) ]); }); rowSets.push([ |