Skip to content

Commit

Permalink
replace * by client's host+port
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Gronlier committed Sep 14, 2018
1 parent ac898b5 commit 8817c27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions guest/file_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ func (m FileManager) TransferURL(ctx context.Context, u string) (*url.URL, error
}

needsHostname := turl.Hostname() == "*"

if needsHostname {
turl.Host = m.c.URL().Host // Also use Client's port, to support port forwarding
}

if !m.c.IsVC() {
return turl, nil // we already connected to the ESX host and have its thumbprint
}
Expand Down

0 comments on commit 8817c27

Please sign in to comment.