summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-openconnect/luasrc
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2017-04-30 16:47:47 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2017-06-19 11:21:47 +0800
commitcf8146ff6779b5b97933d48a6eda8292b792b36b (patch)
tree965308058515e1716cae50928efb8fba11a72309 /protocols/luci-proto-openconnect/luasrc
parent9929289e4a98d5334c586f626fc655062f6e43a1 (diff)
luci-proto-openconnect: allow setting mtu, password2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'protocols/luci-proto-openconnect/luasrc')
-rw-r--r--protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua6
1 files changed, 6 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 2057c8e2e..a602a4c66 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
@@ -43,6 +43,8 @@ section:taboption("general", Value, "authgroup", translate("Auth Group"))
username = section:taboption("general", Value, "username", translate("Username"))
password = section:taboption("general", Value, "password", translate("Password"))
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)"))
@@ -84,3 +86,7 @@ function ca.write(self, section, value)
value = value:gsub("\r\n?", "\n")
nixio.fs.writefile(oc_ca_file, value)
end
+
+mtu = section:taboption("advanced", Value, "mtu", translate("Override MTU"))
+mtu.placeholder = "1406"
+mtu.datatype = "max(9200)"