diff --git a/caddyhttp/httpserver/logger.go b/caddyhttp/httpserver/logger.go index 577464adc..0a263d471 100644 --- a/caddyhttp/httpserver/logger.go +++ b/caddyhttp/httpserver/logger.go @@ -79,10 +79,8 @@ func (l Logger) MaskIP(ip string) string { if reqIP.To4() != nil { return reqIP.Mask(l.V4ipMask).String() - } else { - return reqIP.Mask(l.V6ipMask).String() } - + return reqIP.Mask(l.V6ipMask).String() } // ShouldLog returns true if the path is not exempted from