File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Change: Use configurable URL for internet connectivity check
2+
3+ Default URL is now configurable and the default is set to an independent
4+ resource: https://detectportal.firefox.com/success.txt
5+ This also provides an IPv6 compatible URL.
6+
7+ https://github.com/owncloud/core/pull/41506
8+ https://github.com/owncloud/core/issues/41465
Original file line number Diff line number Diff line change 758758 */
759759'has_internet_connection ' => true ,
760760
761+ /**
762+ * The following URL is used to detect internet connectivity.
763+ */
764+ 'internet_connectivity_detect_url ' => 'https://detectportal.firefox.com/success.txt ' ,
761765/**
762766 * Check for a `.well-known` setup
763767 * Allows ownCloud to verify a working .well-known URL redirect.
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ private function isInternetConnectionWorking(): bool {
8383 }
8484
8585 try {
86+ $ detectUrl = $ this ->config ->getSystemValue ('internet_connectivity_detect_url ' , 'https://detectportal.firefox.com/success.txt ' );
8687 $ client = $ this ->clientService ->newClient ();
87- $ client ->get ('https://www.owncloud.com/ ' );
88- $ client ->get ('http://www.owncloud.com/ ' );
88+ $ client ->get ($ detectUrl );
8989 return true ;
9090 } catch (\Exception $ e ) {
9191 return false ;
You can’t perform that action at this time.
0 commit comments