mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
fix real ip should not modify XFF
This commit is contained in:
parent
ec78a92234
commit
e53d6d216d
1 changed files with 0 additions and 1 deletions
|
@ -112,6 +112,5 @@ func (ri *realIP) setRealIP(req *Request) {
|
|||
req.RemoteAddr = lastNonTrustedIP
|
||||
req.Header.Set(ri.Header, lastNonTrustedIP)
|
||||
req.Header.Set(gphttp.HeaderXRealIP, lastNonTrustedIP)
|
||||
req.Header.Set(gphttp.HeaderXForwardedFor, lastNonTrustedIP)
|
||||
ri.m.AddTracef("set real ip %s", lastNonTrustedIP)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue