Skip to content

feat: filter tunneled jump targets by address family - #252

Merged
inureyes merged 1 commit into
mainfrom
feature/issue-248-jump-address-family
Aug 2, 2026
Merged

feat: filter tunneled jump targets by address family#252
inureyes merged 1 commit into
mainfrom
feature/issue-248-jump-address-family

Conversation

@inureyes

@inureyes inureyes commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

Route later jump-chain hops and chained destinations through the existing family-aware direct-tcpip opener so -4/-6 and AddressFamily filter the locally resolved address named in the channel request.

What changed

  • Updated intermediate jump-hop and chained destination tunnel opens to call open_direct_tcpip_channel_with_family with the resolved SshConnectionConfig address family.
  • Added deterministic mixed-family direct-tcpip target-selection tests covering AddressFamily::Any, IPv4, and IPv6 behavior.
  • Updated ARCHITECTURE.md and docs/man/bssh.1 so they no longer document later jump hops as unfiltered.

Test plan

  • cargo fmt
  • cargo test --lib ssh::tokio_client::channel_manager
  • cargo test --lib jump::chain::tunnel
  • cargo check --lib --tests
  • cargo clippy --lib --tests -- -D warnings

Closes #248

Route intermediate jump hops and chained destinations through the existing family-aware direct-tcpip opener so -4/-6 and AddressFamily constrain the locally resolved address named in the channel request.

Add deterministic mixed-family coverage for direct-tcpip target selection and update the architecture/manpage scope text to remove the obsolete later-hop caveat.

Validated with cargo fmt, cargo test --lib ssh::tokio_client::channel_manager, cargo test --lib jump::chain::tunnel, cargo check --lib --tests, and cargo clippy --lib --tests -- -D warnings.

Closes #248
@inureyes inureyes added type:enhancement New feature or request priority:low Low priority issue status:review Under review status:done Completed and removed status:review Under review labels Aug 2, 2026
@inureyes
inureyes merged commit 93b9441 into main Aug 2, 2026
3 checks passed
@inureyes
inureyes deleted the feature/issue-248-jump-address-family branch August 2, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority issue status:done Completed type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: apply address family preference to jump hops beyond the first

1 participant