Files
buildkit/util/sshutil
Alexandre Rodrigues 521a1bed3d sshutil: Avoid double brackets on IPv6 hosts
A Git URL such as `ssh://git@[::1]/repo.git` supplies `[::1]` as its host. Adding the default SSH port currently produces `[[::1]]:22`, which cannot be dialed.

Remove existing brackets before calling `net.JoinHostPort` when no port is present. Tests cover bracketed and bare IPv6 addresses, zone identifiers, explicit ports, IPv4, and hostnames.

Signed-off-by: Alexandre Rodrigues <alexandre3ylf@gmail.com>
2026-09-29 13:39:11 -03:00
..
2025-08-28 13:50:17 -07:00