From 69ee6c1d88e03f1a3de1f34fc3b447e16f6540e4 Mon Sep 17 00:00:00 2001 From: Nick Vollmar Date: Fri, 30 Nov 2018 11:32:29 -0600 Subject: [PATCH] TUN-1204: remove 'cloudflared hello' command --- cmd/cloudflared/tunnel/cmd.go | 14 -------------- cmd/cloudflared/tunnel/hello.go | 20 -------------------- 2 files changed, 34 deletions(-) delete mode 100644 cmd/cloudflared/tunnel/hello.go diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index f2b21df4..49b82490 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -56,20 +56,6 @@ func Commands() []*cli.Command { }, Hidden: true, }, - { - Name: "hello", - Action: helloWorld, - Usage: "Run a simple \"Hello World\" server for testing Argo Tunnel.", - Flags: []cli.Flag{ - &cli.IntFlag{ - Name: "port", - Usage: "Listen on the selected port.", - Value: 8080, - }, - }, - ArgsUsage: " ", // can't be the empty string or we get the default output - Hidden: true, - }, { Name: "proxy-dns", Action: tunneldns.Run, diff --git a/cmd/cloudflared/tunnel/hello.go b/cmd/cloudflared/tunnel/hello.go deleted file mode 100644 index faa4ce42..00000000 --- a/cmd/cloudflared/tunnel/hello.go +++ /dev/null @@ -1,20 +0,0 @@ -package tunnel - -import ( - "fmt" - - "gopkg.in/urfave/cli.v2" - - "github.com/cloudflare/cloudflared/hello" -) - -func helloWorld(c *cli.Context) error { - address := fmt.Sprintf(":%d", c.Int("port")) - listener, err := hello.CreateTLSListener(address) - if err != nil { - return err - } - defer listener.Close() - err = hello.StartHelloWorldServer(logger, listener, nil) - return err -}