mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 04:26:16 -04:00
log: ip_mask
works on bits, not bytes (#270)
This commit is contained in:
parent
685dfc83c1
commit
2541c63775
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue