mirror of
https://github.com/fosrl/badger.git
synced 2026-09-01 03:31:32 +02:00
make change
This commit is contained in:
2
main.go
2
main.go
@@ -619,7 +619,7 @@ func (p *Badger) setIPHeaders(req *http.Request, realIP string) {
|
||||
// unconditionally overwrites X-Forwarded-For/X-Real-Ip instead of
|
||||
// appending to them - a proxy like that has no reason to touch a header
|
||||
// name it doesn't recognize, so this survives where the standard ones
|
||||
// don't.
|
||||
// don't
|
||||
if p.realIPHeader != "" {
|
||||
req.Header.Set(p.realIPHeader, realIP)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user