Software /
code /
prosody-modules
Diff
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 |
parent | 1467:f10a3a5ba28f |
child | 1617:e0d8caffa209 |
line wrap: on
line diff
--- 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