mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-08-03 23:00:12 +00:00
Just use c.String("metrics")
Co-authored-by: Julien Laffaye <jlaffaye@freebsd.org>
This commit is contained in:
@@ -412,7 +412,7 @@ func buildHealthCommand() *cli.Command {
|
|||||||
|
|
||||||
func healthCommand(c *cli.Context) error {
|
func healthCommand(c *cli.Context) error {
|
||||||
metrics := strings.Split(c.String("metrics"), ":")
|
metrics := strings.Split(c.String("metrics"), ":")
|
||||||
requestURL := fmt.Sprintf("http://%s:%s/ready", metrics[0], metrics[1])
|
requestURL := fmt.Sprintf("http://%s/ready", c.String("metrics"))
|
||||||
res, err := http.Get(requestURL)
|
res, err := http.Get(requestURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user