File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
app/src/main/java/com/nextcloud/client/network Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments