TUN-1204: remove 'cloudflared hello' command

This commit is contained in:
Nick Vollmar 2018-11-30 11:32:29 -06:00 committed by Adam Chalmers
parent 192ae35728
commit 69ee6c1d88
2 changed files with 0 additions and 34 deletions

View File

@ -56,20 +56,6 @@ func Commands() []*cli.Command {
}, },
Hidden: true, 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", Name: "proxy-dns",
Action: tunneldns.Run, Action: tunneldns.Run,

View File

@ -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
}