diff mod_net_proxy/mod_net_proxy.lua @ 2935:7319fd5dbc89

mod_net_proxy: Fixed luacheck warnings
author Pascal Mathis <mail@pascalmathis.com>
date Fri, 16 Mar 2018 21:17:50 +0100
parents e79b9a55aa2e
children 33227efa2cdc
line wrap: on
line diff
--- 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);