mod_onions: Actually define the variable "stanza" to contain "event.stanza", fixing problems of stanzas being dropped for outgoing connections.
authorThijs Alkemade <me@thijsalkema.de>
Fri, 04 Jul 2014 14:47:14 +0200
changeset 1468 cf32265eb4c7
parent 1467 f10a3a5ba28f
child 1469 019746bba318
mod_onions: Actually define the variable "stanza" to contain "event.stanza", fixing problems of stanzas being dropped for outgoing connections.
mod_onions/mod_onions.lua
--- a/mod_onions/mod_onions.lua	Fri Jul 04 14:16:21 2014 +0200
+++ b/mod_onions/mod_onions.lua	Fri Jul 04 14:47:14 2014 +0200
@@ -225,6 +225,7 @@
 
 -- Try to intercept anything to *.onion
 local function route_to_onion(event)
+	local stanza = event.stanza;
 
 	if not event.to_host:find(".onion(.?)$") then
 		if forbid_else then