diff options
Diffstat (limited to 'pkg/worker_handler/handler.go')
-rw-r--r-- | pkg/worker_handler/handler.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/worker_handler/handler.go b/pkg/worker_handler/handler.go index d98cdef0..e0d1aae0 100644 --- a/pkg/worker_handler/handler.go +++ b/pkg/worker_handler/handler.go @@ -202,16 +202,16 @@ func (h *Handler) resolveIP(r *Request) { // CF-Connecting-IP is an Enterprise feature and we check it last in order. // This operations are near O(1) because Headers struct are the map type -> type MIMEHeader map[string][]string if r.Header.Get("X-Real-Ip") != "" { - r.RemoteAddr = fetchIP(r.Header.Get("X-Real-Ip")) + r.RemoteAddr = FetchIP(r.Header.Get("X-Real-Ip")) return } if r.Header.Get("True-Client-IP") != "" { - r.RemoteAddr = fetchIP(r.Header.Get("True-Client-IP")) + r.RemoteAddr = FetchIP(r.Header.Get("True-Client-IP")) return } if r.Header.Get("CF-Connecting-IP") != "" { - r.RemoteAddr = fetchIP(r.Header.Get("CF-Connecting-IP")) + r.RemoteAddr = FetchIP(r.Header.Get("CF-Connecting-IP")) } } |