mod_net_proxy/mod_net_proxy.lua
changeset 2939 7319fd5dbc89
parent 2935 e79b9a55aa2e
child 2965 33227efa2cdc
--- a/mod_net_proxy/mod_net_proxy.lua	Fri Mar 16 20:35:14 2018 +0100
+++ b/mod_net_proxy/mod_net_proxy.lua	Fri Mar 16 21:17:50 2018 +0100
@@ -23,7 +23,7 @@
 
 		-- Convert received bytes into IPv6 address and skip leading zeroes for each group
 		for index = 1, 8 do
-			high, low = input:byte(index * 2 - 1, index * 2);
+			local high, low = input:byte(index * 2 - 1, index * 2);
 			octets[index] = string.format("%x", high * 256 + low);
 		end
 		local address = table.concat(octets, ":", 1, 8);