Documentation
¶
Overview ¶
Package clientip resolves client addresses behind configurable proxies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHeaders = []string{"CF-Connecting-IP", "True-Client-IP", "Ali-CDN-Real-IP", "X-Forwarded-For", "X-Real-IP", "Client-IP", "X-Cluster-Client-IP", "Forwarded-For", "X-Forwarded", "Forwarded"}
Functions ¶
Types ¶
type Config ¶
type Config struct {
Mode string
Headers []string
TrustedProxies []string
Cloudflare bool
CloudFront bool
Directory string
}
Config controls client address resolution and optional CDN range updates.
Click to show internal directories.
Click to hide internal directories.