Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Goodman <aaronjg@stanford.edu>2020-07-29 07:43:05 +0300
committerAaron Goodman <aaronjg@stanford.edu>2020-08-06 23:02:39 +0300
commit3e480874ff85bb7728c8314f0df0b3ac0d34fecd (patch)
treefc2a77020943462752940d5a66f55749bdce1f83 /protocols
parente7c870ea385b91fcfe28d8e9f6c77dbbf0468518 (diff)
luci-proto-openfortivpn: add default route, remove disabled, update text
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
Diffstat (limited to 'protocols')
-rw-r--r--protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js
index d8e3c50aa3..b1c7c229f0 100644
--- a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js
+++ b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js
@@ -61,7 +61,11 @@ return network.registerProtocol('openfortivpn', {
o.datatype = 'and(hexstring,length(64))'
o.optional = true;
- o = s.taboption('advanced', form.Flag, 'peerdns', _('Use DNS server provided by VPN'));
+ o = s.taboption('advanced', form.Flag, 'defaultroute', _('Use default gateway'), _('If unchecked, no default route is configured'));
+ o.default = o.enabled;
+ o.optional = true;
+
+ o = s.taboption('advanced', form.Flag, 'peerdns', _('Use DNS servers advertised by peer'), _('If unchecked, the advertised DNS server addresses are ignored'));
o.default = o.enabled;
o.optional = true;