mod_onions/mod_onions.lua
changeset 2877 9e693d433a41
parent 2708 5ab27d3741b4
child 2884 05ebe377fc90
equal deleted inserted replaced
2876:8f17da746479 2877:9e693d433a41
    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;
    55 	end
    55 	end
    56 
    56 
    57 	module:log("debug", "Succesfully connected to SOCKS5 proxy.");
    57 	module:log("debug", "Successfully connected to SOCKS5 proxy.");
    58 
    58 
    59 	local response = byte(data, 4);
    59 	local response = byte(data, 4);
    60 
    60 
    61 	if response == 0x01 then
    61 	if response == 0x01 then
    62 		if #data < 10 then
    62 		if #data < 10 then