Updater now disabled for dev builds

This commit is contained in:
Thulinma 2017-07-17 22:42:30 +02:00
parent 8fef68f331
commit 499444ba52

View file

@ -98,6 +98,15 @@ namespace Controller{
/// Downloads the latest details on updates
JSON::Value checkUpdateInfo(){
JSON::Value ret;
if (strlen(SHARED_SECRET) < 8){
Log("UPDR", "Self-compiled build. Updater disabled.");
ret["uptodate"] = 1;
ret["needs_update"].null();
ret["release"] = "Self-compiled";
ret["version"] = "Unknown";
ret["date"] = "Now";
return ret;
}
HTTP::Parser http;
JSON::Value updrInfo;
// retrieve update information