mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05: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…
Add table
Reference in a new issue