mirror of
https://github.com/fluffle/goirc
synced 2025-05-12 10:41:42 +00:00
Obfuscate PASS in debug logs. (#87)
This commit is contained in:
parent
8d77d1625c
commit
aad5dbe821
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue