From aad5dbe821392cafadb4a20f70423a01d940ec48 Mon Sep 17 00:00:00 2001 From: Jason Keene Date: Sat, 14 May 2016 02:12:49 -0600 Subject: [PATCH] Obfuscate PASS in debug logs. (#87) --- client/connection.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/connection.go b/client/connection.go index 9b4587e..4f2a6b7 100644 --- a/client/connection.go +++ b/client/connection.go @@ -473,6 +473,9 @@ func (conn *Conn) write(line string) error { if err := conn.io.Flush(); err != nil { return err } + if strings.HasPrefix(line, "PASS") { + line = "PASS **************" + } logging.Debug("-> %s", line) return nil }