Disabled internet checking as mentioned when in proxy mode

This commit is contained in:
Joan 2014-01-10 09:33:35 +01:00
parent 6be2dee5bc
commit 2abea96462
1 changed files with 5 additions and 0 deletions

View File

@ -892,6 +892,11 @@ class OC_Util {
return false;
}
// in case the connection is via proxy return true to avoid connecting to owncloud.org
if(OC_Config::getValue('proxy', '') != '') {
return true;
}
// try to connect to owncloud.org to see if http connections to the internet are possible.
$connected = @fsockopen("www.owncloud.org", 80);
if ($connected) {