AUTH-2394 fixed header for websockets. Added TCP alias

This commit is contained in:
Dalton
2020-03-23 10:22:58 -05:00
parent 32df01a9da
commit a368fbbe9b
3 changed files with 18 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ func Commands() []*cli.Command {
{
Name: "ssh",
Action: ssh,
Aliases: []string{"rdp"},
Aliases: []string{"rdp", "tcp"},
Usage: "",
ArgsUsage: "",
Description: `The ssh subcommand sends data over a proxy to the Cloudflare edge.`,

View File

@@ -602,6 +602,8 @@ func hostnameFromURI(uri string) string {
return addPortIfMissing(u, 22)
case "rdp":
return addPortIfMissing(u, 3389)
case "tcp":
return addPortIfMissing(u, 7864) // just a random port since there isn't a default in this case
}
return ""
}