From a2c8fa1af193939d8f5d20390e01f4df9f6435ee Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Wed, 21 Dec 2022 20:35:45 -0600 Subject: [PATCH] add missing commit --- pkg/inputunifi/collectevents.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/inputunifi/collectevents.go b/pkg/inputunifi/collectevents.go index 93d5e019..918b1fa7 100644 --- a/pkg/inputunifi/collectevents.go +++ b/pkg/inputunifi/collectevents.go @@ -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