Comparison

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
comparison
equal deleted inserted replaced
2703:c0237567bbb1 2704:5ab27d3741b4
44 if #data < 5 then 44 if #data < 5 then
45 session.socks5_buffer = data; 45 session.socks5_buffer = data;
46 return; 46 return;
47 end 47 end
48 48
49 request_status = byte(data, 2); 49 local request_status = byte(data, 2);
50 50
51 if not request_status == 0x00 then 51 if not request_status == 0x00 then
52 module:log("debug", "Failed to connect to the SOCKS5 proxy. :("); 52 module:log("debug", "Failed to connect to the SOCKS5 proxy. :(");
53 session:close(false); 53 session:close(false);
54 return; 54 return;