From 8a86657a23d53e180ab148c80666c5597e12f252 Mon Sep 17 00:00:00 2001 From: nitram509 Date: Sat, 21 Jan 2023 12:15:42 +0100 Subject: [PATCH] update CHANGELOG --- CHANGELOG.md | 8 ++++++++ login.go | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8beaa..87a247e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # ntgrrc (Netgear Remote Control) CHANGELOG +## v0.8.1 + +* CHANGE: using "-v" parameter instead of "-d" for verbose output +* CHANGE: using OS specific temp-directory (typically $TMP or %TEMP%) to store login token (see #17) - thank you for your contribution @Sylensky +* fix the Windows build + +---- + ## v0.8.0 * CHANGE: using "-v" parameter instead of "-d" for verbose output diff --git a/login.go b/login.go index 1bf8263..90a6dc8 100644 --- a/login.go +++ b/login.go @@ -50,7 +50,8 @@ func (login *LoginCommand) Run(args *GlobalOptions) error { func promptForPassword(serverName string) (string, error) { fmt.Printf("Please enter password for '%s' (input hidden) :> ", serverName) - password, err := term.ReadPassword(syscall.Stdin) + // the int conversion is required for the windows build to succeed + password, err := term.ReadPassword(int(syscall.Stdin)) return string(password), err }