# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1521670224 0
# Node ID d2556f237bc2c9fea33dc165ade3a30f5fe44ba7
# Parent  c7734b59506fc5f629e6b594cc3818cda36f0a53
mod_proxy65: Fix passing number to stanza API (thanks mimi89999)

diff -r c7734b59506f -r d2556f237bc2 plugins/mod_proxy65.lua
--- 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);