From bfc59eaf8b9d391383140030f33e88b61e0a584c Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 27 Dec 2016 18:29:02 +0100 Subject: [PATCH] whisper: parameter fixed --- whisper/wnode/main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/whisper/wnode/main.go b/whisper/wnode/main.go index 21876eefba..5ed4f3a726 100644 --- a/whisper/wnode/main.go +++ b/whisper/wnode/main.go @@ -132,6 +132,13 @@ func parseArgs() { checkStringArg(argNameTopic, &topicStr) checkStringArg(argNamePub, &pubStr) + if len(enode) > 0 { + prefix := "enode://" + if enode[:len(prefix)] != prefix { + enode = prefix + enode + } + } + if p > 0 { pow = float64(p) } @@ -317,7 +324,7 @@ func configureChat() { if !isAsymmetric && !testMode { fmt.Printf("Please enter the password: ") - pass, err := terminal.ReadPassword(syscall.Stdin) + pass, err := terminal.ReadPassword(int(syscall.Stdin)) fmt.Println() if err != nil { fmt.Printf("Error: %s \n", err)