core.certmanager: Attempt to directly access LuaSec config table 0.11
authorKim Alvefur <zash@zash.se>
Mon, 26 Apr 2021 15:30:13 +0200
branch0.11
changeset 11552 55ef50d6cf65
parent 11551 dd21eb632f52
child 11553 5a484bd050a7
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
core/certmanager.lua
--- 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;
 	};