From 3e480874ff85bb7728c8314f0df0b3ac0d34fecd Mon Sep 17 00:00:00 2001 From: Aaron Goodman Date: Wed, 29 Jul 2020 00:43:05 -0400 Subject: [PATCH] luci-proto-openfortivpn: add default route, remove disabled, update text Signed-off-by: Aaron Goodman --- .../htdocs/luci-static/resources/protocol/openfortivpn.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2