mod_onions/mod_onions.lua
changeset 1914 720b291cb340
parent 1785 12ac88940fe3
child 2307 db7c80c2d681
equal deleted inserted replaced
1913:c7389fe74de7 1914:720b291cb340
   237 	local onion_port = nil;
   237 	local onion_port = nil;
   238 
   238 
   239 	if not to_host:find(".onion(.?)$") then
   239 	if not to_host:find(".onion(.?)$") then
   240 		if onions_map[to_host] then
   240 		if onions_map[to_host] then
   241 			if type(onions_map[to_host]) == "string" then
   241 			if type(onions_map[to_host]) == "string" then
   242 				onions_host = onions_map[to_host];
   242 				onion_host = onions_map[to_host];
   243 			else
   243 			else
   244 				onion_host = onions_map[to_host].host;
   244 				onion_host = onions_map[to_host].host;
   245 				onion_port = onions_map[to_host].port;
   245 				onion_port = onions_map[to_host].port;
   246 			end
   246 			end
   247 		elseif forbid_else then
   247 		elseif forbid_else then