Don't require https when ENABLE_DEBUG for the remote config thing

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I8b71d4e5a06e2c0a7fcd7dedc370cc4810a204fd
This commit is contained in:
Tor Lillqvist 2022-02-23 12:44:46 +02:00 committed by Tor Lillqvist
parent 7e248d89db
commit cdc783ec0e

View file

@ -1036,11 +1036,13 @@ public:
LOG_INF("Remote config url is not specified in coolwsd.xml");
return; // no remote config server setup.
}
else if (!Util::iequal(remoteServerURI.getScheme(), "https"))
#if !ENABLE_DEBUG
if (Util::iequal(remoteServerURI.getScheme(),"http"))
{
LOG_ERR("Remote config url should only use HTTPS protocol");
LOG_ERR("Remote config url should only use HTTPS protocol: " << remoteServerURI.toString());
return;
}
#endif
startThread();
}