Skip to content

feat: connectivity state and captive-portal URL surface#377

Merged
cachebag merged 8 commits intodevelopmentfrom
v2.x
Apr 25, 2026
Merged

feat: connectivity state and captive-portal URL surface#377
cachebag merged 8 commits intodevelopmentfrom
v2.x

Conversation

@cachebag
Copy link
Copy Markdown
Owner

This PR xposes NM's Connectivity property and CheckConnectivity() method through a typed API.

  • ConnectivityState enum mapping NM's NMConnectivityState (Unknown/None/Portal/Limited/Full)
  • ConnectivityReport aggregating state, check-enabled flag, check URI, and captive-portal URL
  • connectivity() for fast single-property reads, check_connectivity() to force a probe
  • captive_portal_url() with best-effort detection via IP4Config properties (newer NM) falling back to the configured check URI
  • ConnectivityCheckDisabled error variant when checks are off

@cachebag cachebag self-assigned this Apr 25, 2026
@cachebag cachebag added nmrs Changes to nmrs api-surface Public API design, re-exports, and semver-relevant changes refactor Change or improve code wifi WiFi connection management nm-compat NetworkManager compatibility or runtime rejection labels Apr 25, 2026
@cachebag cachebag merged commit 6ed3323 into development Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-surface Public API design, re-exports, and semver-relevant changes nm-compat NetworkManager compatibility or runtime rejection nmrs Changes to nmrs refactor Change or improve code wifi WiFi connection management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant