What steps will reproduce the problem?
1. proxy_ports = {}
2.<iq id='1' to='streamer.example.com' type='get'>
<query xmlns='http://jabber.org/protocol/bytestreams'/>
</iq>
What is the expected output?
<iq from='streamer.example.com' id='1' type='result'>
<query xmlns='http://jabber.org/protocol/bytestreams'>
<streamhost
host='24.24.24.1'
jid='streamer.example.com'
port='7625'/>
</query>
</iq>
What do you see instead?
Traceback due to proxy_port is nil when formatting the <streamhost/>
Affects 0.9.0 and later.
Problem was introduced with the change to portmanager.
An empty proxy_ports could be used in combination with multiplexing.
What steps will reproduce the problem? 1. proxy_ports = {} 2.<iq id='1' to='streamer.example.com' type='get'> <query xmlns='http://jabber.org/protocol/bytestreams'/> </iq> What is the expected output? <iq from='streamer.example.com' id='1' type='result'> <query xmlns='http://jabber.org/protocol/bytestreams'> <streamhost host='24.24.24.1' jid='streamer.example.com' port='7625'/> </query> </iq> What do you see instead? Traceback due to proxy_port is nil when formatting the <streamhost/> Affects 0.9.0 and later. Problem was introduced with the change to portmanager. An empty proxy_ports could be used in combination with multiplexing.
Fixed in https://hg.prosody.im/0.10/rev/e31053344231
Changes