AUTH-2105: Dont require --destination arg
This commit is contained in:
parent
91d9dca34e
commit
a4b3ee5959
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue