From e63ec3450381851689ae726202b6325fb2e3924d Mon Sep 17 00:00:00 2001 From: Anton Kozlov Date: Wed, 20 Jul 2022 15:46:41 +0100 Subject: [PATCH] cURL supports stdin and uses os pipes directly without copying --- cmd/cloudflared/access/cmd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/cloudflared/access/cmd.go b/cmd/cloudflared/access/cmd.go index fa06fd08..85f59d8f 100644 --- a/cmd/cloudflared/access/cmd.go +++ b/cmd/cloudflared/access/cmd.go @@ -296,6 +296,7 @@ func curl(c *cli.Context) error { // run kicks off a shell task and pipe the results to the respective std pipes func run(cmd string, args ...string) error { c := exec.Command(cmd, args...) + c.Stdin = os.Stdin stderr, err := c.StderrPipe() if err != nil { return err