owncloudcmd: Do not read the proxy settings from the gui's config file

The proxy settings for the owncloudcmd client can be set via the
--httpproxy command line argument. owncloudcmd should not depends
on the gui's config
This commit is contained in:
Olivier Goffart 2018-02-21 14:00:57 +01:00 committed by Camila San
parent 9fe8713bdc
commit 204cb470b4
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -23,10 +23,10 @@
#include <QFileInfo>
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkProxy>
#include <qdebug.h>
#include "account.h"
#include "clientproxy.h"
#include "configfile.h" // ONLY ACCESS THE STATIC FUNCTIONS!
#include "creds/httpcredentials.h"
#include "simplesslerrorhandler.h"
@ -327,7 +327,6 @@ int main(int argc, char **argv)
options.restartTimes = 3;
options.uplimit = 0;
options.downlimit = 0;
ClientProxy clientProxy;
parseOptions(app.arguments(), &options);
@ -439,8 +438,6 @@ int main(int argc, char **argv)
} else {
qFatal("Could not read httpproxy. The proxy should have the format \"http://hostname:port\".");
}
} else {
clientProxy.setupQtProxyFromConfig();
}
SimpleSslErrorHandler *sslErrorHandler = new SimpleSslErrorHandler;