mirror of
https://github.com/containers/podman.git
synced 2026-07-08 14:25:04 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user