diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-29 08:31:26 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-29 08:31:32 +0200 |
commit | 515ad0e08e32390a0b2c7b945fc85a01a0b088e2 (patch) | |
tree | 5aec554b03c1892bfc5f28a4ae49e3f782d27fd7 /protocols/luci-proto-openconnect | |
parent | 3e37216a463f9109afdc11140d9dd75af801fe2b (diff) |
luci-proto-openconnect: Added option for default gateway
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'protocols/luci-proto-openconnect')
-rw-r--r-- | protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua index 7b213127f..4ed34ae3b 100644 --- a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua +++ b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua @@ -22,6 +22,20 @@ port.datatype = "port" ifname = section:taboption("general", Value, "interface", translate("Output Interface")) ifname.template = "cbi/network_netlist" +defaultroute = section:taboption("advanced", Flag, "defaultroute", + translate("Use default gateway"), + translate("If unchecked, no default route is configured")) + +defaultroute.default = defaultroute.enabled + + +metric = section:taboption("advanced", Value, "metric", + translate("Use gateway metric")) + +metric.placeholder = "0" +metric.datatype = "uinteger" +metric:depends("defaultroute", defaultroute.enabled) + section:taboption("general", Value, "serverhash", translate("VPN Server's certificate SHA1 hash")) section:taboption("general", Value, "authgroup", translate("AuthGroup")) |