You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-07-15 01:44:22 +02:00
feat: add X-Envoy-External-Address as supported header (#2755)
This commit is contained in:
@ -13,7 +13,10 @@ func GetRealClientIPParser(headerKey string) (ipapi.RealClientIPParser, error) {
|
||||
headerKey = http.CanonicalHeaderKey(headerKey)
|
||||
|
||||
switch headerKey {
|
||||
case http.CanonicalHeaderKey("X-Forwarded-For"), http.CanonicalHeaderKey("X-Real-IP"), http.CanonicalHeaderKey("X-ProxyUser-IP"):
|
||||
case http.CanonicalHeaderKey("X-Forwarded-For"),
|
||||
http.CanonicalHeaderKey("X-Real-IP"),
|
||||
http.CanonicalHeaderKey("X-ProxyUser-IP"),
|
||||
http.CanonicalHeaderKey("X-Envoy-External-Address"):
|
||||
return &xForwardedForClientIPParser{header: headerKey}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user