Browse Source

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.
adaptive-webui-19844
Eugene Shalygin 8 years ago
parent
commit
be8eab4e54
  1. 2
      src/base/http/server.cpp

2
src/base/http/server.cpp

@ -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…
Cancel
Save