Added fix for licensing/updating through non-SSL proxy server
This commit is contained in:
parent
0305288f16
commit
aac698a1f1
2 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,7 @@ namespace Controller{
|
||||||
dl.dataTimeout = 25;//25-second data timeout, increased from 5s default
|
dl.dataTimeout = 25;//25-second data timeout, increased from 5s default
|
||||||
#ifdef SSL
|
#ifdef SSL
|
||||||
HTTP::URL url("https://releases.mistserver.org/license.php");
|
HTTP::URL url("https://releases.mistserver.org/license.php");
|
||||||
|
if (dl.isProxied()){url.protocol = "http";}
|
||||||
#else
|
#else
|
||||||
HTTP::URL url("http://releases.mistserver.org/license.php");
|
HTTP::URL url("http://releases.mistserver.org/license.php");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -82,6 +82,7 @@ namespace Controller{
|
||||||
Log("UPDR", "Downloading update...");
|
Log("UPDR", "Downloading update...");
|
||||||
#ifdef SSL
|
#ifdef SSL
|
||||||
HTTP::URL url("https://releases.mistserver.org/update.php");
|
HTTP::URL url("https://releases.mistserver.org/update.php");
|
||||||
|
if (DL.isProxied()){url.protocol = "http";}
|
||||||
#else
|
#else
|
||||||
HTTP::URL url("http://releases.mistserver.org/update.php");
|
HTTP::URL url("http://releases.mistserver.org/update.php");
|
||||||
#endif
|
#endif
|
||||||
|
@ -171,6 +172,7 @@ namespace Controller{
|
||||||
JSON::Value updrInfo;
|
JSON::Value updrInfo;
|
||||||
#ifdef SSL
|
#ifdef SSL
|
||||||
HTTP::URL url("https://releases.mistserver.org/update.php");
|
HTTP::URL url("https://releases.mistserver.org/update.php");
|
||||||
|
if (DL.isProxied()){url.protocol = "http";}
|
||||||
#else
|
#else
|
||||||
HTTP::URL url("http://releases.mistserver.org/update.php");
|
HTTP::URL url("http://releases.mistserver.org/update.php");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue