Skip to content

feat(driver): PreferDirect IPC command + driver method#15

Merged
TeoSlayer merged 2 commits into
mainfrom
feat/prefer-direct-ipc
Jun 16, 2026
Merged

feat(driver): PreferDirect IPC command + driver method#15
TeoSlayer merged 2 commits into
mainfrom
feat/prefer-direct-ipc

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Adds the cmd_prefer_direct IPC opcode and Driver.PreferDirect(nodeID). Lets pilotctl ask the daemon to drop a peer's tunnel + cached resolution so the next dial re-runs resolve + NAT hole-punch and prefers direct. Backward compatible (old daemons reply 'unknown command'). Part of the v1.11.1 NAT-reliability work (web4 PR #247, dataexchange PR #22). Held for review — not tagged.

Adds the cmd_prefer_direct IPC opcode and Driver.PreferDirect(nodeID),
letting pilotctl ask the daemon to drop a peer's tunnel + cached
resolution so the next dial re-runs the full resolve + NAT hole-punch
flow and prefers the direct path. Used by `pilotctl prefer-direct` and
`send-file --prefer-direct`. Backward compatible: old daemons reply
"unknown command", which the client treats as a best-effort hint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TeoSlayer TeoSlayer merged commit 023b114 into main Jun 16, 2026
2 checks passed
@TeoSlayer TeoSlayer deleted the feat/prefer-direct-ipc branch June 16, 2026 08:33
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