up git packd

This commit is contained in:
SirPdboy 2022-03-11 17:52:19 +08:00 committed by GitHub
parent c379f006bb
commit 8eeea29f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,10 +714,11 @@ elseif action == "console" then
if not cmd_docker or not cmd_ttyd or cmd_docker:match("^%s+$") or cmd_ttyd:match("^%s+$") then
return
end
local uci = (require "luci.model.uci").cursor()
local ttyd_ssl = uci.get("ttyd", "@ttyd[0]", "ssl")
local ttyd_ssl_key = uci.get("ttyd", "@ttyd[0]", "ssl_key")
local ttyd_ssl_cert = uci.get("ttyd", "@ttyd[0]", "ssl_cert")
local ttyd_ssl = uci:get("ttyd", "@ttyd[0]", "ssl")
local ttyd_ssl_key = uci:get("ttyd", "@ttyd[0]", "ssl_key")
local ttyd_ssl_cert = uci:get("ttyd", "@ttyd[0]", "ssl_cert")
if ttyd_ssl=="1" and ttyd_ssl_cert and ttyd_ssl_key then
cmd_ttyd=string.format('%s -S -C %s -K %s',cmd_ttyd,ttyd_ssl_cert,ttyd_ssl_key)
@ -729,7 +730,6 @@ elseif action == "console" then
end
local hosts
local uci = (require "luci.model.uci").cursor()
local remote = uci:get_bool("dockerd", "dockerman", "remote_endpoint") or false
local host = nil
local port = nil