Prosody IM trunk


changeset 55ef50d6cf65 0.11

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

author
Kim Alvefur
date
parents
children
files

1 files changed, 1 insertions(+), 1 deletions(-)

↓ Download patch

--- a/core/certmanager.lua	Mon May 10 17:03:27 2021 +0100
+++ b/core/certmanager.lua	Mon Apr 26 15:30:13 2021 +0200
@@ -38,7 +38,7 @@
 
 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;
 	};