mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
caddyhttp: Document that remote_ip reads X-Forwarded-For header
https://caddy.community/t/remote-ip-behaviour/10762?u=matt
This commit is contained in:
parent
a748151666
commit
b8a799df9f
1 changed files with 3 additions and 0 deletions
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Reference in a new issue