projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40a6762
)
util.sslconfig: Rename variable to avoid name clash [luacheck]
author
Matthew Wild
<mwild1@gmail.com>
Wed, 6 May 2015 18:43:28 +0000
(19:43 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Wed, 6 May 2015 18:43:28 +0000
(19:43 +0100)
util/sslconfig.lua
patch
|
blob
|
history
diff --git
a/util/sslconfig.lua
b/util/sslconfig.lua
index 98e61341f53c9ad708d08043b6139d6d90593eb1..42ce37d72045f94faad19af6c36851a3b9d77937 100644
(file)
--- 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 k
ey, value
in pairs(b) do
+ if v
alue == true or value
== false then
+ o[k
ey] = value
;
else
- o[v] = true;
+ o[v
alue
] = true;
end
end
a[k] = o;