gin-gonic/gin — pull request #182 by nl5887 (2014-12-21 12:44:08+00:00)
Title: Fixed issue allowing to spoof ClientIP()

The X-Forwarded-For can be used to spoof the real client ip. The middleware
introduced in this patch (which should only be used when having servers
in front of this servers) will filter all defined proxies (or local ip
addresses by default) and replace the RemoteAddr with the real client
ip.