Correct inconsistency in ip masking example (#209)

This commit is contained in:
pyfisch 2022-02-03 14:36:51 +01:00 committed by GitHub
parent b01f645d7d
commit 3f97d611b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ log {
```
Mask the remote address from the request, keeping the first 16 bytes (i.e. 255.255.0.0) for IPv4 addresses, and the first 64 bytes from IPv6 addresses, and also deletes the `common_log` field which would normally contain an unmasked IP address:
Mask the remote address from the request, keeping the first 16 bits (i.e. 255.255.0.0) for IPv4 addresses, and the first 32 bits from IPv6 addresses, and also deletes the `common_log` field which would normally contain an unmasked IP address:
```caddy-d
log {
@ -285,7 +285,7 @@ log {
fields {
common_log delete
request>remote_addr ip_mask {
ipv4 24
ipv4 16
ipv6 32
}
}