diff options
author | Christoph Kluge <me@christoph-kluge.eu> | 2020-11-03 00:01:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 16:01:58 -0700 |
commit | dd26875ffcbec8b74234bdda64e019a8a20c37e2 (patch) | |
tree | 97fc7a8c68a8e1ef9b071d6ffa23918fa09322e3 /modules/logging | |
parent | eda9a1b377effed349f2e818a3ce71c3c8df6173 (diff) |
logging: Fix for IP filtering
Diffstat (limited to 'modules/logging')
-rw-r--r-- | modules/logging/filters.go | 2 |
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) |