GetRemoteAddr parses the given request, resolves the X-Forwarded-For header and returns the resolved remote address.
GetRemoteAddrIfAllowed parses the given request, resolves the X-Forwarded-For header and returns the resolved remote address if allowed.
IsPublicIP returns true if the given IP can be routed on the Internet.
Parse parses the value of the X-Forwarded-For Header and returns the IP address.
Options is a configuration container to setup the XFF middleware.
XFF http handler
Default creates a new XFF handler with default options.
New creates a new XFF handler with the provided options.
Handler updates RemoteAdd from X-Fowarded-For Headers.
HandlerFunc provides Martini compatible handler
Negroni compatible interface