ip_mask works on bits, not bytes

This commit is contained in:
Malloc Voidstar 2022-09-22 07:47:42 -07:00 committed by GitHub
parent 685dfc83c1
commit c0b73a6366
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 {