Changeset

8642:d2556f237bc2

mod_proxy65: Fix passing number to stanza API (thanks mimi89999)
author Matthew Wild <mwild1@gmail.com>
date Wed, 21 Mar 2018 22:10:24 +0000
parents 8641:c7734b59506f
children 8643:11b6aa30b3e0
files plugins/mod_proxy65.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua	Wed Mar 21 22:08:54 2018 +0000
+++ b/plugins/mod_proxy65.lua	Wed Mar 21 22:10:24 2018 +0000
@@ -123,7 +123,7 @@
 
 		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);