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

TUN-3345: tunnel run accepts name of tunnel as argument

This commit is contained in:
cthuang
2020-09-04 15:18:14 +01:00
committed by Chung Ting Huang
parent cd5bdb837e
commit 5fb938d6d6

View File

@@ -316,7 +316,7 @@ func runCommand(c *cli.Context) error {
if c.NArg() != 1 {
return cliutil.UsageError(`"cloudflared tunnel run" requires exactly 1 argument, the ID or name of the tunnel to run.`)
}
tunnelID, err := uuid.Parse(c.Args().First())
tunnelID, err := sc.findID(c.Args().First())
if err != nil {
return errors.Wrap(err, "error parsing tunnel ID")
}