# HG changeset patch # User Kim Alvefur # Date 1752504179 -7200 # Node ID 2f754817bf4bf77f2b7ef0502111de8efc7b246f # Parent 17b5a10bd9c9a70e64d1f80a8eaf60799267eda6 util.sslconfig: Fix error when applying ssl={[port]=...} An error due to the key being numeric and thus not having the meta-methods Introduced in 2ee27587fec7 Fixes #1948 Thanks Andronicus diff -r 17b5a10bd9c9 -r 2f754817bf4b util/sslconfig.lua --- a/util/sslconfig.lua Wed Jun 18 15:02:02 2025 +0200 +++ b/util/sslconfig.lua Mon Jul 14 16:42:59 2025 +0200 @@ -120,7 +120,7 @@ if type(new) == "table" then for field, value in pairs(new) do -- exclude keys which are internal to the config builder - if field:sub(1, 1) ~= "_" then + if type(field) == "string" and field:sub(1, 1) ~= "_" then (handlers[field] or rawset)(config, field, value); end end