Added fix for licensing/updating through non-SSL proxy server

This commit is contained in:
Thulinma 2019-11-07 11:59:55 +01:00
parent 0305288f16
commit aac698a1f1
2 changed files with 3 additions and 0 deletions

View file

@ -100,6 +100,7 @@ namespace Controller{
dl.dataTimeout = 25;//25-second data timeout, increased from 5s default
#ifdef SSL
HTTP::URL url("https://releases.mistserver.org/license.php");
if (dl.isProxied()){url.protocol = "http";}
#else
HTTP::URL url("http://releases.mistserver.org/license.php");
#endif

View file

@ -82,6 +82,7 @@ namespace Controller{
Log("UPDR", "Downloading update...");
#ifdef SSL
HTTP::URL url("https://releases.mistserver.org/update.php");
if (DL.isProxied()){url.protocol = "http";}
#else
HTTP::URL url("http://releases.mistserver.org/update.php");
#endif
@ -171,6 +172,7 @@ namespace Controller{
JSON::Value updrInfo;
#ifdef SSL
HTTP::URL url("https://releases.mistserver.org/update.php");
if (DL.isProxied()){url.protocol = "http";}
#else
HTTP::URL url("http://releases.mistserver.org/update.php");
#endif