doc: update docs and fixed typos (#5821)

This commit is contained in:
agile6v 2020-07-01 22:02:52 +08:00 committed by GitHub
parent c56baf6b15
commit 3402d07ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View file

@ -57,14 +57,14 @@ local function get_pem_cert_uid(raw_hostname)
return uid
end
local wildcard_hosatname, _, err = re_sub(hostname, "^[^\\.]+\\.", "*.", "jo")
local wildcard_hostname, _, err = re_sub(hostname, "^[^\\.]+\\.", "*.", "jo")
if err then
ngx.log(ngx.ERR, "error: ", err)
return uid
end
if wildcard_hosatname then
uid = ngx.shared.certificate_servers:get(wildcard_hosatname)
if wildcard_hostname then
uid = certificate_servers:get(wildcard_hostname)
end
return uid