Diff

util/sslconfig.lua @ 6679:96e034508978

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 13 May 2015 17:00:27 +0100
parent 6671:2d5e2ed44c22
child 6777:5de6b93d0190
line wrap: on
line diff
--- a/util/sslconfig.lua	Wed May 06 19:26:53 2015 +0100
+++ b/util/sslconfig.lua	Wed May 13 17:00:27 2015 +0100
@@ -6,11 +6,11 @@
 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;