[Qt-interest] Host lookups not working with QNetworkProxy?

Bastian Bense bastibense at gmail.com
Wed Apr 29 12:35:54 CEST 2009


Thiago,

thanks a lot, it works.

However, here are a few things that I consider to be helpful in the future:

- update the documentation of QNetworkProxy to say that SOCKS name
lookups are actually supported
- possibly update setType() to automatically set the default
capabilities (I consider a setType() call to be a initialization thing
only; I can't think of another case where you would be calling it
during the lifetime of a connection)
- possibly add a note to the "Proxy Type" table in QNetworkProxy's
documentation, that says that a call to setCapability() might be
needed if the proxy type is changed after the object was created.

This is an important step into the right direction, since Tor becomes
more and more relevant for freedom of speech (see censorship in
Germany, for instance).

Thanks again!


2009/4/29 Thiago Macieira <thiago.macieira at trolltech.com>:
> This works, but please check that you're doing the following:
>
>  - using Qt 4.5, since this feature wasn't available before
>
>  - you create your QNetworkProxy objects without calling setType. That is:
>        QNetworkProxy proxy(QNetworkProxy::Socks5Proxy);
>   otherwise, you have to call
>        setCapabilities(QNetworkProxy::HostNameLookupCapabitlity)


-- 
Best regards,
Bastian Bense




More information about the Qt-interest-old mailing list