luci-app-mwan3: move proto select after ip version selection

Redmine-patch-id: 6620
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2021-11-30 11:11:49 +01:00
parent 09576ca8c0
commit 919436e47e

View file

@ -39,6 +39,16 @@ return view.extend({
o.value('ipv6', _('IPv6 only'));
o.modalonly = true;
o = s.option(form.Value, 'proto', _('Protocol'),
_('View the content of /etc/protocols for protocol description'));
o.default = 'all';
o.rmempty = false;
o.value('all');
o.value('tcp');
o.value('udp');
o.value('icmp');
o.value('esp');
o = s.option(form.Value, 'src_ip', _('Source address'),
_('Supports CIDR notation (eg \"192.168.100.0/24\") without quotes'));
o.datatype = 'ipaddr';
@ -57,16 +67,6 @@ return view.extend({
o.depends('proto', 'tcp');
o.depends('proto', 'udp');
o = s.option(form.Value, 'proto', _('Protocol'),
_('View the content of /etc/protocols for protocol description'));
o.default = 'all';
o.rmempty = false;
o.value('all');
o.value('tcp');
o.value('udp');
o.value('icmp');
o.value('esp');
o = s.option(form.ListValue, 'sticky', _('Sticky'),
_('Traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface'));
o.default = '0';