summaryrefslogtreecommitdiff
path: root/src/proxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxy.go')
-rw-r--r--src/proxy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proxy.go b/src/proxy.go
index 5ee7317c..bf7b78d5 100644
--- a/src/proxy.go
+++ b/src/proxy.go
@@ -59,8 +59,8 @@ func runProxy(commandPrefix string, cmdBuilder func(temp string) *exec.Cmd, opts
}()
var command string
- commandPrefix += ` --proxy-script "$0"`
- if opts.Input == nil && util.IsTty(os.Stdin) {
+ commandPrefix += ` --no-force-tty-in --proxy-script "$0"`
+ if opts.Input == nil && (opts.ForceTtyIn || util.IsTty(os.Stdin)) {
command = fmt.Sprintf(`%s > %q`, commandPrefix, output)
} else {
input, err := fifo("proxy-input")