summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-mwan3/htdocs')
-rw-r--r--applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js5
-rw-r--r--applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js21
2 files changed, 14 insertions, 12 deletions
diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js
index dacb4d3914..74c1718322 100644
--- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js
+++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js
@@ -166,8 +166,9 @@ return view.extend({
o = s.option(form.ListValue, "timeout", _("Ping timeout"));
o.default = '4';
- for (var i = 1; i <= 10; i++)
- o.value(String(i), N_(i, '%d second', '%d seconds').format(i));
+ o.value('1', _('%d second').format('1'));
+ for (var i = 2; i <= 10; i++)
+ o.value(String(i), _('%d seconds').format(i));
o.modalonly = true;
o = s.option(form.ListValue, 'interval', _('Ping interval'));
diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js
index 5cec172c83..6452caf58a 100644
--- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js
+++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js
@@ -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';
@@ -78,6 +78,7 @@ return view.extend({
_('Seconds. Acceptable values: 1-1000000. Defaults to 600 if not set'));
o.datatype = 'range(1, 1000000)';
o.modalonly = true;
+ o.depends('sticky', '1');
o = s.option(form.Value, 'ipset', _('IPset'),
_('Name of IPset rule. Requires IPset rule in /etc/dnsmasq.conf (eg \"ipset=/youtube.com/youtube\")'));