aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-21 22:10:24 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-21 22:10:24 +0000
commit8a86a0512677bbe950c1af87203570b2443de1e5 (patch)
treeb89a5a8b375702cf1e006d58d7e3cdbad8269fdb /plugins/mod_proxy65.lua
parent7a83585658d10e45f0ee5b77168e11ab6d2aaa98 (diff)
downloadprosody-8a86a0512677bbe950c1af87203570b2443de1e5.tar.gz
prosody-8a86a0512677bbe950c1af87203570b2443de1e5.zip
mod_proxy65: Fix passing number to stanza API (thanks mimi89999)
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index cbbfad12..cf1d4c60 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -123,7 +123,7 @@ function module.add_host(module)
local sid = stanza.tags[1].attr.sid;
origin.send(st.reply(stanza):tag("query", {xmlns="http://jabber.org/protocol/bytestreams", sid=sid})
- :tag("streamhost", {jid=host, host=proxy_address, port=proxy_port}));
+ :tag("streamhost", {jid=host, host=proxy_address, port=("%d"):format(proxy_port)}));
return true;
end);