Skip to content
Snippets Groups Projects
Commit 39be83ca authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #6676 from aseques/check_internet_proxy

Fix internet detection to use OC_Util::getUrlContent
parents f354717c 2abea964
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment