changeset 2935:7319fd5dbc89

mod_net_proxy: Fixed luacheck warnings
author Pascal Mathis <mail@pascalmathis.com>
date Fri, 16 Mar 2018 21:17:50 +0100
parents 5c60df8b1a07
children 4fed2379f5be
files mod_net_proxy/mod_net_proxy.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);