mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07: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
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue