luci-app-firewall: Add ipset field to forwards (redirects)

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
This commit is contained in:
Paul Dee 2023-02-17 13:56:40 +01:00 committed by Jo-Philipp Wich
parent f407a013ba
commit d0d891c23e

View file

@ -240,6 +240,14 @@ return view.extend({
o.nocreate = true;
o.default = 'wan';
o = s.taboption('advanced', form.Value, 'ipset', _('Use ipset'));
uci.sections('firewall', 'ipset', function(s) {
if (typeof(s.name) == 'string')
this.value(s.name, s.comment ? '%s (%s)'.format(s.name, s.comment) : s.name);
});
o.modalonly = true;
o.rmempty = true;
o = fwtool.addMACOption(s, 'advanced', 'src_mac', _('Source MAC address'),
_('Only match incoming traffic from these MACs.'), hosts);
o.rmempty = true;