Fix 'service install' on Mac OS
Without this when cloudflared is started with Mac OS launch agent it errors with: ``` Use `cloudflared tunnel run` to start tunnel {UUID} Use `cloudflared tunnel run` to start tunnel {UUID} Use `cloudflared tunnel run` to start tunnel {UUID} ``` This patch is suggested by https://github.com/cloudflare/cloudflared/issues/327#issuecomment-1763670368
This commit is contained in:
parent
d7d81384c2
commit
83e1cf8e65
|
@ -24,7 +24,8 @@ func getServiceExtraArgsFromCliArgs(c *cli.Context, log *zerolog.Logger) ([]stri
|
||||||
// currently, we only support extra args for token
|
// currently, we only support extra args for token
|
||||||
return buildArgsForToken(c, log)
|
return buildArgsForToken(c, log)
|
||||||
} else {
|
} else {
|
||||||
// empty extra args
|
return []string{
|
||||||
return make([]string, 0), nil
|
"tunnel", "run",
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue