luci-app-smartdns: add option to skip certificate verify
This commit is contained in:
parent
3b2634529b
commit
6c6c14c920
@ -5,9 +5,10 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=Luci for smartdns server
|
||||
LUCI_DEPENDS:=+smartdns
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
PKG_NAME:=luci-app-smartdns
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
||||
@ -63,6 +63,16 @@ o.rempty = true
|
||||
o:depends("type", "tls")
|
||||
o:depends("type", "https")
|
||||
|
||||
---- Certificate verify
|
||||
o = s:option(Flag, "no_check_certificate", translate("No check certificate"), translate("Do not check certificate."))
|
||||
o.default = o.disabled
|
||||
o.rmempty = false
|
||||
o:depends("type", "tls")
|
||||
o:depends("type", "https")
|
||||
o.cfgvalue = function(...)
|
||||
return Flag.cfgvalue(...) or "0"
|
||||
end
|
||||
|
||||
---- SNI host name
|
||||
o = s:option(Value, "host_name", translate("TLS SNI name"), translate("Sets the server name indication for query."))
|
||||
o.default = ""
|
||||
@ -117,4 +127,4 @@ o.default = ""
|
||||
o.rempty = true
|
||||
o.optional = true
|
||||
|
||||
return m
|
||||
return m
|
||||
|
||||
@ -211,6 +211,12 @@ msgstr "校验TLS主机名"
|
||||
msgid "Set TLS hostname to verify."
|
||||
msgstr "设置校验TLS主机名。"
|
||||
|
||||
msgid "No check certificate"
|
||||
msgstr "跳过证书检查"
|
||||
|
||||
msgid "Do not check certificate."
|
||||
msgstr "不检查服务器证书。"
|
||||
|
||||
msgid "TLS SNI name"
|
||||
msgstr "TLS SNI名称"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user