diff --git a/cmd/cloudflared/main.go b/cmd/cloudflared/main.go index c74c2bc2..bc809400 100644 --- a/cmd/cloudflared/main.go +++ b/cmd/cloudflared/main.go @@ -2,11 +2,8 @@ package main import ( "fmt" - "os" "time" - "golang.org/x/crypto/ssh/terminal" - "github.com/cloudflare/cloudflared/cmd/cloudflared/access" "github.com/cloudflare/cloudflared/cmd/cloudflared/tunnel" "github.com/cloudflare/cloudflared/cmd/cloudflared/updater" @@ -87,11 +84,6 @@ func flags() []cli.Flag { func action(version string, shutdownC, graceShutdownC chan struct{}) cli.ActionFunc { return func(c *cli.Context) (err error) { - if isRunningFromTerminal() { - logger.Error("Use of cloudflared without commands is deprecated.") - cli.ShowAppHelp(c) - return nil - } tags := make(map[string]string) tags["hostname"] = c.String("hostname") raven.SetTagsContext(tags) @@ -115,7 +107,3 @@ func userHomeDir() (string, error) { } return homeDir, nil } - -func isRunningFromTerminal() bool { - return terminal.IsTerminal(int(os.Stdout.Fd())) -}