log: ip_mask works on bits, not bytes (#270)

This commit is contained in:
Malloc Voidstar 2022-09-22 08:43:36 -07:00 committed by GitHub
parent 685dfc83c1
commit 2541c63775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,7 +248,7 @@ Marks a field to be replaced with the provided string at encoding time.
##### ip_mask ##### ip_mask
Masks IP addresses in the field using a CIDR mask, i.e. the number of bytes from the IP to retain, starting from the left side. There is separate configuration for IPv4 and IPv6 addresses. Most commonly, the field to filter would be `request>remote_ip`. Masks IP addresses in the field using a CIDR mask, i.e. the number of bits from the IP to retain, starting from the left side. There is separate configuration for IPv4 and IPv6 addresses. Most commonly, the field to filter would be `request>remote_ip`.
```caddy-d ```caddy-d
<field> ip_mask { <field> ip_mask {