Skip to content

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

Open
TeoSlayer wants to merge 1 commit into
mainfrom
feat/prefer-direct-ipc
Open

feat(driver): PreferDirect IPC command + driver method#15
TeoSlayer wants to merge 1 commit 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

❌ Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
driver/driver.go 0.00% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

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