comparison mod_onions/mod_onions.lua @ 1910:720b291cb340

mod_onions: Patch from David Goulet: Fix onions_map when the target is a string.
author Thijs Alkemade <me@thijsalkema.de>
date Wed, 14 Oct 2015 15:21:59 +0200
parents 12ac88940fe3
children db7c80c2d681
comparison
equal deleted inserted replaced
1909:c7389fe74de7 1910: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