Merge pull request #1135 from yousong/fix
luci-proto-openconnect: allow setting no_cert_check, password2, mtu
This commit is contained in:
commit
c1c06226b9
1 changed files with 6 additions and 2 deletions
|
@ -19,8 +19,6 @@ port = section:taboption("general", Value, "port", translate("VPN Server port"))
|
||||||
port.placeholder = "443"
|
port.placeholder = "443"
|
||||||
port.datatype = "port"
|
port.datatype = "port"
|
||||||
|
|
||||||
ifname = section:taboption("general", Value, "interface", translate("Output Interface"))
|
|
||||||
ifname.template = "cbi/network_netlist"
|
|
||||||
|
|
||||||
defaultroute = section:taboption("advanced", Flag, "defaultroute",
|
defaultroute = section:taboption("advanced", Flag, "defaultroute",
|
||||||
translate("Use default gateway"),
|
translate("Use default gateway"),
|
||||||
|
@ -43,6 +41,8 @@ section:taboption("general", Value, "authgroup", translate("Auth Group"))
|
||||||
username = section:taboption("general", Value, "username", translate("Username"))
|
username = section:taboption("general", Value, "username", translate("Username"))
|
||||||
password = section:taboption("general", Value, "password", translate("Password"))
|
password = section:taboption("general", Value, "password", translate("Password"))
|
||||||
password.password = true
|
password.password = true
|
||||||
|
password2 = section:taboption("general", Value, "password2", translate("Password2"))
|
||||||
|
password2.password = true
|
||||||
|
|
||||||
|
|
||||||
cert = section:taboption("advanced", Value, "usercert", translate("User certificate (PEM encoded)"))
|
cert = section:taboption("advanced", Value, "usercert", translate("User certificate (PEM encoded)"))
|
||||||
|
@ -84,3 +84,7 @@ function ca.write(self, section, value)
|
||||||
value = value:gsub("\r\n?", "\n")
|
value = value:gsub("\r\n?", "\n")
|
||||||
nixio.fs.writefile(oc_ca_file, value)
|
nixio.fs.writefile(oc_ca_file, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
mtu = section:taboption("advanced", Value, "mtu", translate("Override MTU"))
|
||||||
|
mtu.placeholder = "1406"
|
||||||
|
mtu.datatype = "max(9200)"
|
||||||
|
|
Loading…
Reference in a new issue