]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disabled internet checking as mentioned when in proxy mode
authorJoan <aseques@gmail.com>
Fri, 10 Jan 2014 08:33:35 +0000 (09:33 +0100)
committerJoan <aseques@gmail.com>
Fri, 10 Jan 2014 08:33:35 +0000 (09:33 +0100)
lib/private/util.php

index c0e618cc86308826d62ad756d059d4a3726dd16c..9b37dccb507bb0e07bef9b082cd6644bbbdc551d 100755 (executable)
@@ -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) {