bool parseVersionInfo(const QString &file, UpdateCheckerInfo *updateInfo);
bool getFile(const QString &url, const QString &outFile, const unsigned int maxRedir = 5U, bool *httpOk = NULL);
- bool getFile(const QString &url, const bool forceIp4, const QString &outFile, const unsigned int maxRedir, bool *httpOk);
+ bool getFile(const QString &url, const bool forceIp4, const QString &outFile, const unsigned int maxRedir = 5U, bool *httpOk = NULL);
bool checkSignature(const QString &file, const QString &signature);
bool tryUpdateMirror(UpdateCheckerInfo *updateInfo, const QString &url);
};
static const char *update_mirrors[] =
{
"http://muldersoft.com/",
- "http://mulder.bplaced.net/", //"http://mulder.cwsurf.de/",
+ "http://mulder.bplaced.net/",
"http://mulder.6te.net/",
- "http://mulder.webuda.com/", //"http://mulder.byethost13.com/",
- "http://mulder.pe.hu/", //"http://muldersoft.kilu.de/",
- "http://muldersoft.square7.ch/", //"http://muldersoft.zxq.net/",
+ "http://mulder.webuda.com/",
+ "http://mulder.pe.hu/",
+ "http://muldersoft.square7.ch/",
"http://muldersoft.co.nf/",
"http://muldersoft.eu.pn/",
"http://muldersoft.lima-city.de/",
"http://lordmulder.github.io/LameXP/",
"http://lord_mulder.bitbucket.org/",
"http://www.tricksoft.de/",
+ "http://repo.or.cz/LameXP.git/blob_plain/gh-pages:/",
+ "http://gitlab.com/lamexp/lamexp/raw/gh-pages/",
NULL
};
static const int MIN_CONNSCORE = 5;
static const int VERSION_INFO_EXPIRES_MONTHS = 6;
-static char *USER_AGENT_STR = "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111106 IceCat/7.0.1";
+static char *USER_AGENT_STR = "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0"; /*use something innocuous*/
////////////////////////////////////////////////////////////
// Helper Functions
args << "-4";
}
- args << "-T" << "15" << "--no-cache" << "--no-dns-cache" << QString().sprintf("--max-redirect=%u", maxRedir);
+ args << "--no-config" << "--no-cache" << "--no-dns-cache" << "--no-check-certificate" << "--no-hsts";
+ args << QString().sprintf("--max-redirect=%u", maxRedir) << "--timeout=15";
args << QString("--referer=%1://%2/").arg(QUrl(url).scheme(), QUrl(url).host()) << "-U" << USER_AGENT_STR;
args << "-O" << output.fileName() << url;