mod_proxy65: Fix passing number to stanza API (thanks mimi89999)

This commit is contained in:
Matthew Wild 2018-03-21 22:10:24 +00:00
parent 7a83585658
commit 8a86a05126

View file

@ -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);