mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Remove http proxy
This commit is contained in:
parent
18fb695614
commit
4e58341631
2 changed files with 1 additions and 17 deletions
|
@ -188,7 +188,6 @@
|
|||
#include <src/scripting/LimitlessVoiceRecognitionScriptingInterface.h>
|
||||
#include <EntityScriptClient.h>
|
||||
#include <ModelScriptingInterface.h>
|
||||
#include <QtNetwork/QNetworkProxy>
|
||||
|
||||
// On Windows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU
|
||||
// FIXME seems to be broken.
|
||||
|
@ -605,7 +604,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
{
|
||||
const QString TEST_SCRIPT = "--testScript";
|
||||
const QString TRACE_FILE = "--traceFile";
|
||||
const QString HTTP_PROXY = "--httpProxy";
|
||||
const QStringList args = arguments();
|
||||
for (int i = 0; i < args.size() - 1; ++i) {
|
||||
if (args.at(i) == TEST_SCRIPT) {
|
||||
|
@ -617,17 +615,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
QString traceFilePath = args.at(i + 1);
|
||||
setProperty(hifi::properties::TRACING, traceFilePath);
|
||||
DependencyManager::get<tracing::Tracer>()->startTracing();
|
||||
} else if (args.at(i) == HTTP_PROXY) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QNetworkProxy proxy;
|
||||
proxy.setType(QNetworkProxy::HttpProxy);
|
||||
proxy.setHostName("127.0.0.1");
|
||||
proxy.setPort(8888);
|
||||
QNetworkProxy::setApplicationProxy(proxy);
|
||||
|
||||
// make sure the debug draw singleton is initialized on the main thread.
|
||||
DebugDraw::getInstance().removeMarker("");
|
||||
|
||||
|
|
|
@ -19,14 +19,7 @@ QThreadStorage<QNetworkAccessManager*> networkAccessManagers;
|
|||
|
||||
QNetworkAccessManager& NetworkAccessManager::getInstance() {
|
||||
if (!networkAccessManagers.hasLocalData()) {
|
||||
auto nm = new QNetworkAccessManager();
|
||||
networkAccessManagers.setLocalData(nm);
|
||||
|
||||
QNetworkProxy proxy;
|
||||
proxy.setType(QNetworkProxy::HttpProxy);
|
||||
proxy.setHostName("127.0.0.1");
|
||||
proxy.setPort(8888);
|
||||
nm->setProxy(proxy);
|
||||
networkAccessManagers.setLocalData(new QNetworkAccessManager());
|
||||
}
|
||||
|
||||
return *networkAccessManagers.localData();
|
||||
|
|
Loading…
Reference in a new issue