Skip to content

feat(ssh): wire AddressFamily from sshconfig for IPv4/IPv6 selection#367

Merged
kke merged 1 commit into
mainfrom
ssh-config-address-family
Jun 3, 2026
Merged

feat(ssh): wire AddressFamily from sshconfig for IPv4/IPv6 selection#367
kke merged 1 commit into
mainfrom
ssh-config-address-family

Conversation

@kke

@kke kke commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR wires the AddressFamily setting from the internal sshconfig parsing into the SSH connection dial step, enabling IPv4-only (inet) or IPv6-only (inet6) outbound connections when establishing an SSH session.

Changes:

  • Select net.Dialer network as tcp4 when AddressFamily=inet.
  • Select net.Dialer network as tcp6 when AddressFamily=inet6.
  • Keep default behavior as tcp (covers any/unset), preserving dual-stack resolution and Happy Eyeballs behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kke kke marked this pull request as ready for review June 3, 2026 20:40
@kke kke merged commit f242557 into main Jun 3, 2026
13 checks passed
@kke kke deleted the ssh-config-address-family branch June 3, 2026 20:42
kke added a commit that referenced this pull request Jun 3, 2026
kke added a commit that referenced this pull request Jun 3, 2026
kke added a commit that referenced this pull request Jun 4, 2026
kke added a commit that referenced this pull request Jun 4, 2026
kke added a commit that referenced this pull request Jun 4, 2026
kke added a commit that referenced this pull request Jun 4, 2026
kke added a commit that referenced this pull request Jun 4, 2026
kke added a commit that referenced this pull request Jun 4, 2026
…366)

* feat(ssh): wire AddressFamily from sshconfig for IPv4/IPv6 selection (#367)

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>

* Review fixes

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>

---------

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
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