summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChristoph Kluge <me@christoph-kluge.eu>2020-11-03 00:01:58 +0100
committerGitHub <noreply@github.com>2020-11-02 16:01:58 -0700
commitdd26875ffcbec8b74234bdda64e019a8a20c37e2 (patch)
tree97fc7a8c68a8e1ef9b071d6ffa23918fa09322e3 /modules
parenteda9a1b377effed349f2e818a3ce71c3c8df6173 (diff)
logging: Fix for IP filtering
Diffstat (limited to 'modules')
-rw-r--r--modules/logging/filters.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/logging/filters.go b/modules/logging/filters.go
index 3bc1e2c..a5a917d 100644
--- a/modules/logging/filters.go
+++ b/modules/logging/filters.go
@@ -141,7 +141,7 @@ func (m IPMaskFilter) Filter(in zapcore.Field) zapcore.Field {
return in
}
mask := m.v4Mask
- if ipAddr.To16() != nil {
+ if ipAddr.To4() == nil {
mask = m.v6Mask
}
masked := ipAddr.Mask(mask)