mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-30 16:34:16 +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:
parent
54e99f2510
commit
be8eab4e54
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user