Software /
code /
prosody-modules
Changeset
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 | 1909:c7389fe74de7 |
children | 1911:0225f2a551d0 |
files | mod_onions/mod_onions.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_onions/mod_onions.lua Wed Oct 14 14:07:57 2015 +0200 +++ b/mod_onions/mod_onions.lua Wed Oct 14 15:21:59 2015 +0200 @@ -239,7 +239,7 @@ if not to_host:find(".onion(.?)$") then if onions_map[to_host] then if type(onions_map[to_host]) == "string" then - onions_host = onions_map[to_host]; + onion_host = onions_map[to_host]; else onion_host = onions_map[to_host].host; onion_port = onions_map[to_host].port;