comparison util/sslconfig.lua @ 13914:1bc4e7ab964c

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 14 Jul 2025 16:44:10 +0200
parents 2f754817bf4b
children
comparison
equal deleted inserted replaced
13912:a0faff6ba853 13914:1bc4e7ab964c
118 local function apply(config, new) 118 local function apply(config, new)
119 rawset(config, "_cache", nil); 119 rawset(config, "_cache", nil);
120 if type(new) == "table" then 120 if type(new) == "table" then
121 for field, value in pairs(new) do 121 for field, value in pairs(new) do
122 -- exclude keys which are internal to the config builder 122 -- exclude keys which are internal to the config builder
123 if field:sub(1, 1) ~= "_" then 123 if type(field) == "string" and field:sub(1, 1) ~= "_" then
124 (handlers[field] or rawset)(config, field, value); 124 (handlers[field] or rawset)(config, field, value);
125 end 125 end
126 end 126 end
127 end 127 end
128 return config 128 return config