mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06: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:
@@ -33,6 +33,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <QTcpSocket>
|
#include <QTcpSocket>
|
||||||
#endif
|
#endif
|
||||||
|
#include <QNetworkProxy>
|
||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
|
|
||||||
@@ -45,6 +46,7 @@ Server::Server(IRequestHandler *requestHandler, QObject *parent)
|
|||||||
, m_https(false)
|
, m_https(false)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
setProxy(QNetworkProxy::NoProxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
Server::~Server()
|
Server::~Server()
|
||||||
|
|||||||
Reference in New Issue
Block a user