From e63739891c0244f0db90612271f7fa0604124462 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 12 Dec 2020 12:28:12 -0700 Subject: [PATCH] docs: Update remote_ip matcher --- src/docs/markdown/caddyfile/matchers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/markdown/caddyfile/matchers.md b/src/docs/markdown/caddyfile/matchers.md index f64b85a..14515e8 100644 --- a/src/docs/markdown/caddyfile/matchers.md +++ b/src/docs/markdown/caddyfile/matchers.md @@ -455,10 +455,10 @@ query sort=asc ### remote_ip ```caddy-d -remote_ip +remote_ip [forwarded] ``` -By remote (client) IP address. If `X-Forwarded-For` is passed in request headers, this will be used for remote IP address. Accepts exact IPs or CIDR ranges. +By remote (client) IP address. Accepts exact IPs or CIDR ranges. If the first argument is `forwarded`, then the first IP in the `X-Forwarded-For` request header, if present, will be preferred as the reference IP, rather than the immediate peer's IP, which is the default. Multiple `remote_ip` matchers will be OR'ed together.