mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
logging: Fix for IP filtering
This commit is contained in:
parent
eda9a1b377
commit
dd26875ffc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue