From c480e4c94ca0533b1f0f24dccea4a729a44d3d6a Mon Sep 17 00:00:00 2001 From: pyfisch Date: Thu, 3 Feb 2022 13:25:28 +0100 Subject: [PATCH] Correct inconsistency in ip masking example --- src/docs/markdown/caddyfile/directives/log.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/log.md b/src/docs/markdown/caddyfile/directives/log.md index ffe647d..68b458d 100644 --- a/src/docs/markdown/caddyfile/directives/log.md +++ b/src/docs/markdown/caddyfile/directives/log.md @@ -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 } }