Don't return http proxy for server usages
Http proxy cannot support server sockets or udp sockets, so don't offer it as the system proxy (in the generic environment variables implementation) Change-Id: I234ab1024952b2630e668ddc35c665efade8e2b9 Reviewed-by: Adrien Bustany <adrien@bustany.org> Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
This commit is contained in:
parent
ad97aba452
commit
d3781ab09c
@ -119,7 +119,9 @@ QList<QNetworkProxy> QNetworkProxyFactory::systemProxyForQuery(const QNetworkPro
|
||||
url.port() ? url.port() : 1080, url.userName(), url.password());
|
||||
proxy.setCapabilities(QNetworkProxy::HostNameLookupCapability);
|
||||
proxyList << proxy;
|
||||
} else if (url.scheme() == QLatin1String("http") || url.scheme().isEmpty()) {
|
||||
} else if ((url.scheme() == QLatin1String("http") || url.scheme().isEmpty())
|
||||
&& query.queryType() != QNetworkProxyQuery::UdpSocket
|
||||
&& query.queryType() != QNetworkProxyQuery::TcpServer) {
|
||||
QNetworkProxy proxy(QNetworkProxy::HttpProxy, url.host(),
|
||||
url.port() ? url.port() : 8080, url.userName(), url.password());
|
||||
proxyList << proxy;
|
||||
|
Loading…
x
Reference in New Issue
Block a user