From 8a86a0512677bbe950c1af87203570b2443de1e5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 21 Mar 2018 22:10:24 +0000 Subject: mod_proxy65: Fix passing number to stanza API (thanks mimi89999) --- plugins/mod_proxy65.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3