Skip to content

Comments

fix: use lightweight endpoints with fallbacks for connectivity check#87

Merged
edospadoni merged 3 commits intomainfrom
fix/connectivity-check-rate-limiting
Feb 16, 2026
Merged

fix: use lightweight endpoints with fallbacks for connectivity check#87
edospadoni merged 3 commits intomainfrom
fix/connectivity-check-rate-limiting

Conversation

@edospadoni
Copy link
Member

@edospadoni edospadoni commented Feb 5, 2026

Summary

  • Replace google.com with dedicated connectivity check endpoints
  • Add fallback to Cloudflare endpoints if Google fails
  • Use HEAD requests instead of GET to minimize traffic
  • Add quick pre-check with net.isOnline() / navigator.onLine
  • Reduce timeout from 5s to 3s per endpoint

Endpoints (in order)

  1. connectivitycheck.gstatic.com/generate_204 (Google)
  2. 1.1.1.1/cdn-cgi/trace (Cloudflare)
  3. cloudflare.com/cdn-cgi/trace (Cloudflare)

Ref:

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/21705833848.
Commit: b75c3c2

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/21706906594.
Commit: d529f42

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/21707182079.
Commit: c20ab56

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/21707607688.
Commit: a3cac3d

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@edospadoni edospadoni force-pushed the fix/connectivity-check-rate-limiting branch from a3cac3d to fa91ca0 Compare February 16, 2026 17:34
@edospadoni edospadoni merged commit 80c2766 into main Feb 16, 2026
4 checks passed
@edospadoni edospadoni deleted the fix/connectivity-check-rate-limiting branch February 16, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants