Skip to content

Commit 291868d

Browse files
Update app/src/main/java/com/nextcloud/client/network/ConnectivityService.java
Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com> Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
1 parent a654793 commit 291868d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

app/src/main/java/com/nextcloud/client/network/ConnectivityService.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,6 @@ public interface ConnectivityService {
6464
* In other words, it checks whether the server can be reached without network interference
6565
* such as a hotel's captive portal, Wi-Fi login page, or similar restrictions.</p>
6666
*
67-
* <p>The implementation performs the following steps:</p>
68-
* <ul>
69-
* <li>Uses cached results from {@link WalledCheckCache} when available to avoid
70-
* redundant network calls.</li>
71-
* <li>Retrieves the active {@link Server} from {@link UserAccountManager}.</li>
72-
* <li>If connected issues a lightweight
73-
* HTTP {@code GET} request to the server’s <code>/index.php/204</code> endpoint
74-
* (which should respond with HTTP 204 No Content when connectivity is healthy).</li>
75-
* <li>If the response differs from the expected 204 No Content, the connection is
76-
* assumed to be behind a captive portal or otherwise restricted.</li>
77-
* <li>If no active network or server is detected, the method assumes the Internet
78-
* is walled.</li>
79-
* </ul>
80-
*
8167
* <p>Results are cached for subsequent checks to minimize unnecessary HTTP requests.</p>
8268
*
8369
* @return {@code true} if the Internet appears to be walled (e.g. captive portal or

0 commit comments

Comments
 (0)