fix ssh config parsing for HostName

A later invocation to url.Parse() needs a preceding scheme,
otherwise the hostname just gets discarded.

Fixes #25067

Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
Signed-off-by: KILA <32559459+kila-star1127@users.noreply.github.com>
This commit is contained in:
Jannik Glückert
2025-12-03 22:27:31 +01:00
committed by KILA
parent 138879058b
commit b0cb2bb011

View File

@@ -217,7 +217,7 @@ func sshClient(_url *url.URL, uri string, identity string, machine bool) (Connec
}
if val := cfg.Get(alias, "Hostname"); val != "" {
uri = val
uri = "ssh://" + val
found = true
}