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
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue