Software /
code /
prosody
Diff
plugins/mod_proxy65.lua @ 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 |
parent | 6948:e6968e47826d |
child | 8643:11b6aa30b3e0 |
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);