mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00: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:
parent
138879058b
commit
b0cb2bb011
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue