psi-im / psi

XMPP client
https://psi-im.org/
Other
404 stars 122 forks source link

SRV record not used when using proxy #34

Open macarbiter opened 12 years ago

macarbiter commented 12 years ago

Psi correctly uses the SRV record to find the server to connect to, but when told to use a proxy, it simply asks the proxy to connect to domain portion of the JID. Given that the proxy doesn't know to do the SRV lookup it just connects to where it is told to.

This means that the host needs to be manually configured for each client, and if the server changes, the

Can Psi not perform the SRV lookup before connecting to the proxy so that it knows exactly what the proxy must connect to?

jkarneges commented 12 years ago

When using a proxy, DNS resolution is preferred on the proxy side rather than the client side. This is for privacy reasons and also because certain restricted networks might not be able to do the resolving. However, SOCKS and HTTPS CONNECT proxies can only resolve A or AAAA records, not SRV. So, the current situation is Psi simply skips the SRV step and manual host must be used in this case (but, the manual host is resolved proxy side).

Probably an option should be added for allowing local SRV resolution even when a proxy is enabled.