Matthew Holt
4 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
3 additions and
0 deletions
-
modules/caddyhttp/matchers.go
|
@ -105,6 +105,9 @@ type ( |
|
|
MatchProtocol string |
|
|
MatchProtocol string |
|
|
|
|
|
|
|
|
// MatchRemoteIP matches requests by client IP (or CIDR range).
|
|
|
// 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 { |
|
|
MatchRemoteIP struct { |
|
|
Ranges []string `json:"ranges,omitempty"` |
|
|
Ranges []string `json:"ranges,omitempty"` |
|
|
|
|
|
|
|
|