Make licensing system use HTTPS if SSL support is enabled.

This commit is contained in:
Thulinma 2019-03-20 21:22:09 +01:00
parent 6bdf3a4ccd
commit 0deb9a6aee

View file

@ -97,7 +97,11 @@ namespace Controller{
JSON::Value response;
HTTP::Downloader dl;
#ifdef SSL
HTTP::URL url("https://releases.mistserver.org/license.php");
#else
HTTP::URL url("http://releases.mistserver.org/license.php");
#endif
url.args = "release="+Encodings::URL::encode(RELEASE)+"&version="+Encodings::URL::encode(PACKAGE_VERSION)+"&iid="+Encodings::URL::encode(instanceId)+"&hrn="+Encodings::URL::encode(Storage["config"]["serverid"])+"&lid="+currentLicense["lic_id"].asString() + extra;
long long currID = currentLicense["lic_id"].asInt();