add missing commit

This commit is contained in:
Cody Lee 2022-12-21 20:35:45 -06:00
parent 0e5d743182
commit a2c8fa1af1
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -156,10 +156,10 @@ func redactEvent(e *unifi.Event, hash *bool, dropPII *bool) *unifi.Event {
e.SrcMAC = ""
} else {
// hash it
e.Host = RedactNamePII(e.Host, hash)
e.Hostname = RedactNamePII(e.Hostname, hash)
e.DstMAC = RedactMacPII(e.DstMAC, hash)
e.SrcMAC = RedactMacPII(e.SrcMAC, hash)
e.Host = RedactNamePII(e.Host, hash, dropPII)
e.Hostname = RedactNamePII(e.Hostname, hash, dropPII)
e.DstMAC = RedactMacPII(e.DstMAC, hash, dropPII)
e.SrcMAC = RedactMacPII(e.SrcMAC, hash, dropPII)
}
return e