Просмотр исходного кода

luci-app-ssr-plus: append self-signed cert path to config

Signed-off-by: CN_SZTL <[email protected]>
CN_SZTL 4 лет назад
Родитель
Сommit
f49af16406

+ 2 - 2
luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

@@ -591,9 +591,9 @@ end
 
 o = s:option(Value, "certpath", translate("Current Certificate Path"))
 o:depends("certificate", 1)
-o:value("/etc/ssl/private/")
+o:value("/etc/ssl/private/ca.pem")
 o.description = translate("Please confirm the current certificate path")
-o.default = "/etc/ssl/private/"
+o.default = "/etc/ssl/private/ca.pem"
 
 o = s:option(Flag, "fast_open", translate("TCP Fast Open"))
 o.rmempty = true

+ 1 - 1
luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

@@ -194,7 +194,7 @@ local trojan = {
 	ssl = {
 		verify = (server.insecure == "0") and true or false,
 		verify_hostname = (server.tls == "1") and true or false,
-		cert = "",
+		cert = (server.certificate) and server.certpath or nil,
 		cipher = cipher,
 		cipher_tls13 = cipher13,
 		sni = server.tls_host,