Skip to content

The net service reports tunnel paths to the cloud - #134

Merged
AlxcBTW merged 2 commits into
mainfrom
night/path-report
Oct 27, 2026
Merged

AlxcBTW merged 2 commits into
mainfrom
night/path-report

Conversation

@AlxcBTW

@AlxcBTW AlxcBTW commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Follows anyplaynet/cloud#107 (POST /v1/tunnels/path, counted only).

  • Cloud::tunnel_path(direct, upgraded) and the path constant TUNNEL_PATH in the API crate.
  • The service sends one report each time a tunnel comes up on, or moves to, a direct or relay path (the same event as the anyplay::path log line), with upgraded when it moved from a relay to a direct path. Fire and forget: no wait, no retry, no message on failure; a cloud without the route (404) is not told and nobody notices.
  • No account, peer, address or time in the body.
  • Spec: "Tunnel paths" in spec/cloud-api.md, plus the limit row; docs/DESIGN.md updated.
  • Unit tests against a fake cloud: the body is {kind, upgraded} only; a cloud without the route answers an error that the service ignores.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@AlxcBTW
AlxcBTW merged commit 323518a into main Oct 27, 2026
18 checks passed
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.

1 participant