aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-04-26 15:30:13 +0200
committerKim Alvefur <zash@zash.se>2021-04-26 15:30:13 +0200
commita174420e52cdbc0c80680d76c750d0ac59c01870 (patch)
treee0e5592c08e06451897f10c721a6eb8d2cf232bd
parent92cec56e9760c6dc2dc3d775e81646e9995fc6b4 (diff)
downloadprosody-a174420e52cdbc0c80680d76c750d0ac59c01870.tar.gz
prosody-a174420e52cdbc0c80680d76c750d0ac59c01870.zip
core.certmanager: Attempt to directly access LuaSec config table
Due to a bug this field was not properly exported before See https://github.com/brunoos/luasec/issues/149
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 20b91318..85a24d3d 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -38,7 +38,7 @@ local config_path = prosody.paths.config or ".";
local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor);
-local luasec_has = softreq"ssl.config" or {
+local luasec_has = ssl.config or softreq"ssl.config" or {
algorithms = {
ec = luasec_version >= 5;
};