luci-proto-openconnect: Added option for default gateway
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
3e37216a46
commit
515ad0e08e
1 changed files with 14 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue