Merge pull request #6676 from aseques/check_internet_proxy

Fix internet detection to use OC_Util::getUrlContent
This commit is contained in:
Thomas Müller 2014-01-19 12:08:55 -08:00
commit 39be83ca8b
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) {