Skip to content

feat: share the ssh connection on every route - #137

Merged
ado11231 merged 2 commits into
masterfrom
feat/share-every-route
Oct 18, 2026
Merged

ado11231 merged 2 commits into
masterfrom
feat/share-every-route

Conversation

@ado11231

Copy link
Copy Markdown
Owner

Step 1 of #9.

  • Every route now shares one ssh connection, not only iroh, so port forwarding can add ports to it while it runs.
  • Each account, address, and port gets its own connection, so a run never says one route while using another.
  • The check that drops a dead shared connection now covers direct routes too.

Tested on archbox over the local network: run, sync, attach, and a forward added to and removed from the live connection. Tailnet and iroh not tested.

Port forwarding adds and removes forwards on a running connection with ssh -O forward, which needs a shared connection. Only iroh had one. Each account, address, and port now gets its own socket, so a connection opened over one route never carries calls meant for another.
@ado11231
ado11231 merged commit 405cce0 into master Oct 18, 2026
2 checks passed
@ado11231
ado11231 deleted the feat/share-every-route branch October 18, 2026 04:13
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