AUTH-2105: Dont require --destination arg

This commit is contained in:
Michael Borkenstein 2019-10-11 12:26:23 -05:00
parent 91d9dca34e
commit a4b3ee5959
1 changed files with 2 additions and 3 deletions

View File

@ -35,10 +35,9 @@ func ssh(c *cli.Context) error {
} }
destination := c.String(sshDestinationFlag) destination := c.String(sshDestinationFlag)
if destination == "" { if destination != "" {
return cli.ShowCommandHelp(c, "ssh") headers.Add("CF-Access-SSH-Destination", destination)
} }
headers.Add("CF-Access-SSH-Destination", destination)
options := &carrier.StartOptions{ options := &carrier.StartOptions{
OriginURL: originURL, OriginURL: originURL,