comparison mod_onions/mod_onions.lua @ 1468:cf32265eb4c7

mod_onions: Actually define the variable "stanza" to contain "event.stanza", fixing problems of stanzas being dropped for outgoing connections.
author Thijs Alkemade <me@thijsalkema.de>
date Fri, 04 Jul 2014 14:47:14 +0200
parents f10a3a5ba28f
children e0d8caffa209
comparison
equal deleted inserted replaced
1467:f10a3a5ba28f 1468:cf32265eb4c7
223 session.sendq = nil; 223 session.sendq = nil;
224 end 224 end
225 225
226 -- Try to intercept anything to *.onion 226 -- Try to intercept anything to *.onion
227 local function route_to_onion(event) 227 local function route_to_onion(event)
228 local stanza = event.stanza;
228 229
229 if not event.to_host:find(".onion(.?)$") then 230 if not event.to_host:find(".onion(.?)$") then
230 if forbid_else then 231 if forbid_else then
231 module:log("debug", event.to_host .. " is not an onion. Blocking it."); 232 module:log("debug", event.to_host .. " is not an onion. Blocking it.");
232 return false; 233 return false;