Enable updater for public builds

This commit is contained in:
Thulinma 2023-12-20 11:23:49 +01:00
parent ca5eba2e92
commit 67ce3b1a17

View file

@ -137,7 +137,7 @@ namespace Controller{
/// Downloads the latest details on updates
JSON::Value checkUpdateInfo(){
JSON::Value ret;
if (strlen(SHARED_SECRET) < 8){
if (strlen(SHARED_SECRET) < 8 && std::string(RELEASE).substr(0, 4) != "Free"){
Log("UPDR", "Self-compiled build. Updater disabled.");
ret["uptodate"] = 1;
ret["needs_update"].null();