View definition

(*Context).ClientIP

Defined in github.com/gin-gonic/gin/context.go

Description

ClientIP implements a best effort algorithm to return the real client IP, it parses X-Real-IP and X-Forwarded-For in order to work properly with reverse-proxies such us: nginx or haproxy.

ClientIP is referenced in 34 repositories

github.com/gin-gonic/gin github.com/eirka/eirka-post github.com/Depado/goploader

...