You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
murphy
committed
feat(cli): let environment add override the advertised pairing endpoint
A pairing offer embeds whatever address the host advertised. "Share this
Orca server" defaults its address picker to 127.0.0.1, so a link minted
for a LAN or Tailscale peer routinely carries a loopback endpoint that
the receiving machine dials against itself. The credentials are fine —
only the address is wrong — but the CLI had no way to correct it, leaving
hand-editing the base64 offer as the only path.
`environment add --endpoint <host>` redirects the offer while keeping the
deviceToken and pinned public key the host issued. Resolution reuses
resolveAdvertisedPairingEndpoint, so the flag accepts the same host,
host:port, and ws(s):// forms as the address field that produced the
link, inherits the port from the pairing code when omitted, and rejects
wildcard bind addresses no client can dial.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
'Use --endpoint when the host advertised an address this machine cannot reach (for example a 127.0.0.1 link generated for a LAN or Tailscale peer). It accepts a host, host:port, or ws(s):// URL and keeps the port from the pairing code when omitted.'
0 commit comments