This commit is contained in:
Cyan 2025-09-11 16:34:44 +03:00 committed by GitHub
commit 3a05d947fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ func (self *SSHHandler) HandleSSHDockerHost() (io.Closer, error) {
// if the docker host scheme is "ssh", forward the docker socket before creating the client
if u.Scheme == "ssh" {
tunnel, err := self.createDockerHostTunnel(ctx, u.Host)
tunnel, err := self.createDockerHostTunnel(ctx, u.User.String() + "@" + u.Host)
if err != nil {
return noopCloser{}, fmt.Errorf("tunnel ssh docker host: %w", err)
}