diff options
Diffstat (limited to 'service/http/handler.go')
-rw-r--r-- | service/http/handler.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/handler.go b/service/http/handler.go index 3c667035..802de2c2 100644 --- a/service/http/handler.go +++ b/service/http/handler.go @@ -178,4 +178,8 @@ func (h *Handler) resolveIP(r *Request) { if r.Header.Get("X-Real-Ip") != "" { r.RemoteAddr = fetchIP(r.Header.Get("X-Real-Ip")) } + + if r.Header.Get("True-Client-IP") != "" { + r.RemoteAddr = fetchIP(r.Header.Get("True-Client-IP")) + } } |