Diff

mod_onions/mod_onions.lua @ 2704:5ab27d3741b4

mod_onions: Make variable local
author Kim Alvefur <zash@zash.se>
date Mon, 24 Apr 2017 18:12:29 +0200
parent 2703:c0237567bbb1
child 2873:9e693d433a41
line wrap: on
line diff
--- a/mod_onions/mod_onions.lua	Mon Apr 24 18:12:08 2017 +0200
+++ b/mod_onions/mod_onions.lua	Mon Apr 24 18:12:29 2017 +0200
@@ -46,7 +46,7 @@
 		return;
 	end
 
-	request_status = byte(data, 2);
+	local request_status = byte(data, 2);
 
 	if not request_status == 0x00 then
 		module:log("debug", "Failed to connect to the SOCKS5 proxy. :(");