From 499444ba5219f5df38b13411e3cabf547c5ee39b Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 17 Jul 2017 22:42:30 +0200 Subject: [PATCH] Updater now disabled for dev builds --- src/controller/controller_updater.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/controller/controller_updater.cpp b/src/controller/controller_updater.cpp index 6a1ba897..8969ea67 100644 --- a/src/controller/controller_updater.cpp +++ b/src/controller/controller_updater.cpp @@ -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