Permalink
Browse files

Fix proxying (on Qt 4.8? With current OpenSSH?)

  • Loading branch information...
1 parent db413b2 commit 5afce9327f71b4eab2b2407784898f6dd94c8d65 @jefferai jefferai committed Apr 24, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/libtomahawk/utils/tomahawkutils.cpp
@@ -350,8 +350,12 @@ void
NetworkProxyFactory::setProxy( const QNetworkProxy& proxy )
{
m_proxy = proxy;
- if ( !TomahawkSettings::instance()->proxyDns() )
- m_proxy.setCapabilities( QNetworkProxy::TunnelingCapability | QNetworkProxy::ListeningCapability | QNetworkProxy::UdpTunnelingCapability );
+ QFlags< QNetworkProxy::Capability > proxyCaps;
+ proxyCaps |= QNetworkProxy::TunnelingCapability;
+ proxyCaps |= QNetworkProxy::ListeningCapability;
+ if ( TomahawkSettings::instance()->proxyDns() )
+ proxyCaps |= QNetworkProxy::HostNameLookupCapability;
+ m_proxy.setCapabilities( proxyCaps );
tDebug() << Q_FUNC_INFO << "Proxy using host" << proxy.hostName() << "and port" << proxy.port();
tDebug() << Q_FUNC_INFO << "setting proxy to use proxy DNS?" << (TomahawkSettings::instance()->proxyDns() ? "true" : "false");
}

0 comments on commit 5afce93

Please sign in to comment.