smartlake / proxy65

Automatically exported from code.google.com/p/proxy65
0 stars 0 forks source link

advertise hostname instead of ip address #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This partly solves the problem described in 
https://code.google.com/p/proxy65/issues/detail?id=9

E.g. when executing this query:

<iq from='user@example.net/foo' id='uj2c15z9' to='proxy.example.net' 
type='get'> <query xmlns='http://jabber.org/protocol/bytestreams'/> </iq>

The old code returned the IP address, even when it was behind a NAT and thus 
not routable. The new code returns the hostname, so it is usable for split DNS.

Old output:

<streamhost jid='proxy.example.net' port='7777' host='10.0.0.42'/>

New output:

<streamhost jid='proxy.example.net' port='7777' host='proxy.example.net'/>

Original issue reported on code.google.com by evertmouw on 14 Oct 2014 at 9:15

Attachments: