samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

Can't read password when Alpaca is launched through Windows Git Bash #31

Open samuong opened 4 years ago

samuong commented 4 years ago

Steps to reproduce:

  1. On a Windows machine, open up Git Bash
  2. Launch Alpaca using /path/to/alpaca -d mydomain

Expected behaviour:

Alpaca should prompt for the user's password and use that to authenticate to the proxy.

Actual behaviour:

The password prompt is printed, followed by an error message:

main.go:52: Error reading password from stdin: The handle is invalid.

Workaround:

Run Alpaca from a Command Prompt (cmd.exe) window.

samuong commented 4 years ago

This could be related to https://github.com/golang/go/issues/11914