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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user