summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/matchers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go
index 4886ba6..b9ddc33 100644
--- a/modules/caddyhttp/matchers.go
+++ b/modules/caddyhttp/matchers.go
@@ -105,6 +105,9 @@ type (
MatchProtocol string
// MatchRemoteIP matches requests by client IP (or CIDR range).
+ // If the X-Forwarded-For header is set, the first IP in that list
+ // is used as the reference IP; otherwise, the remote IP of the
+ // connection is the reference.
MatchRemoteIP struct {
Ranges []string `json:"ranges,omitempty"`