diff --git a/cmd/cloudflared/access/cmd.go b/cmd/cloudflared/access/cmd.go index 73c6ae40..25f8ea8e 100644 --- a/cmd/cloudflared/access/cmd.go +++ b/cmd/cloudflared/access/cmd.go @@ -316,7 +316,7 @@ func generateToken(c *cli.Context) error { if err := raven.SetDSN(sentryDSN); err != nil { return err } - appURL, err := url.Parse(c.String("app")) + appURL, err := url.Parse(ensureURLScheme(c.String("app"))) if err != nil || c.NumFlags() < 1 { fmt.Fprintln(os.Stderr, "Please provide a url.") return err