aboutsummaryrefslogtreecommitdiffstats
path: root/util/sslconfig.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-13 17:00:27 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-13 17:00:27 +0100
commita885794fccabfc6dc8cc8e52f83c8ac865ddd8c8 (patch)
tree65bc2e4d57655c0f62aec527649de4e5f46296d4 /util/sslconfig.lua
parentdaec51c435ca77914271200607841d55ff7408d7 (diff)
parent2f7ac943416fa13023e9d061ffc8020811a4ebf0 (diff)
downloadprosody-a885794fccabfc6dc8cc8e52f83c8ac865ddd8c8.tar.gz
prosody-a885794fccabfc6dc8cc8e52f83c8ac865ddd8c8.zip
Merge 0.10->trunk
Diffstat (limited to 'util/sslconfig.lua')
-rw-r--r--util/sslconfig.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/sslconfig.lua b/util/sslconfig.lua
index 98e61341..42ce37d7 100644
--- a/util/sslconfig.lua
+++ b/util/sslconfig.lua
@@ -6,11 +6,11 @@ local id = function (v) return v end
function handlers.options(a, k, b)
local o = a[k] or { };
if type(b) ~= "table" then b = { b } end
- for k,v in pairs(b) do
- if v == true or v == false then
- o[k] = v;
+ for key, value in pairs(b) do
+ if value == true or value == false then
+ o[key] = value;
else
- o[v] = true;
+ o[value] = true;
end
end
a[k] = o;