1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-30 08:24:22 +00:00

Disable proxy in WebUI HTTP server. Closes #6349.

Due to a bug in Qt 5.8 (QTBUG-58706) QTcpServer tries to use HTTP proxy
when it is set as default app proxy (for instance via "http_proxy"
environment variable) and this breaks the server. So we disable any proxy
in it.
This commit is contained in:
Eugene Shalygin 2017-02-20 23:57:49 +01:00
parent 54e99f2510
commit be8eab4e54

View File

@ -33,6 +33,7 @@
#else
#include <QTcpSocket>
#endif
#include <QNetworkProxy>
#include "connection.h"
#include "server.h"
@ -45,6 +46,7 @@ Server::Server(IRequestHandler *requestHandler, QObject *parent)
, m_https(false)
#endif
{
setProxy(QNetworkProxy::NoProxy);
}
Server::~Server()