Skip to content

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

Open
edospadoni wants to merge 4 commits intomainfrom
fix/connectivity-check-rate-limiting
Open

fix: use lightweight endpoints with fallbacks for connectivity check#87
edospadoni wants to merge 4 commits intomainfrom
fix/connectivity-check-rate-limiting

Conversation

@edospadoni
Copy link
Member

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: NethServer/dev#7849

@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

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