1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-17 17:10:43 +08:00

AUTH-2173: Prepends access login url with scheme if one doesnt exist

This commit is contained in:
Michael Borkenstein
2019-10-22 10:41:44 -05:00
parent 7133eceb9b
commit ad9559c66a
4 changed files with 40 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ func ssh(c *cli.Context) error {
if err != nil || rawHostName == "" {
return cli.ShowCommandHelp(c, "ssh")
}
originURL := "https://" + hostname
originURL := ensureURLScheme(hostname)
// get the headers from the cmdline and add them
headers := buildRequestHeaders(c.StringSlice(sshHeaderFlag))