Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.4.0, 5.5.0
-
None
-
Linux
Description
When http_proxy is set to "http://someproxy", and the application calls QNetworkProxyFactory::setUseSystemConfiguration(true), QTcpServer::bind() fails.
QNativeSocketEnginePrivate::checkProxy fails since server->proxy() is QNetworkProxy::DefaultProxy, and QNetworkProxy::applicationProxy() returns a proxy for QNetworkProxyQuery::TcpSocket and not TcpServer.
I think there is no need to check the proxy for QTcpServer, since QTcpServer::listen calls QAbstractSocketEngine::createSocketEngine, which only creates a QNativeSocketEngine when the resolved proxy is QNetworkProxy::NoProxy.