Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.9.1
-
None
-
Linux Mint 18.2
Qt 5.9.1
-
d0c5e294323c69ef16c44466c3cff8decf4face5
Description
Hello,
I wanted to connect to a server in a network with a proxy. The server is not behind the proxy so I used `QNetworkProxy::setApplicationProxy(QNetworkProxy::NoProxy)` to force not using any proxy. But when I try to connect I get following error:
QAbstractSocket::UnsupportedSocketOperationError "The proxy type is invalid for this operation"
If I call `QAbstractSocket::setProxy(QNetworkProxy::NoProxy)` or `QAbstractSocket::setProxy(QNetworkProxy::applicationProxy)` I can connect and don't get any error. I expected that setting the application wide proxy would cause the `QAbstractSocket` to setted proxy (in my case no proxy).
PS: I am using an extern component so I cannot call `QAbstractSocket::setProxy`. For testing I used a QTcpSocket to get the full error message.
Attachments
Issue Links
- duplicates
-
QTBUG-61692 QTcpSocket connection fails, when a system proxy is set but deactivated in Qt
-
- Closed
-