negroni

Golang Middleware to handle X-Forwarded-For Header

Install

All systems
curl cmd.cat/negroni.sh
Debian Debian
apt-get install golang-github-sebest-xff
Ubuntu
apt-get install golang-github-sebest-xff
image/svg+xml Kali Linux
apt-get install golang-github-sebest-xff
Windows (WSL2)
sudo apt-get update sudo apt-get install golang-github-sebest-xff

golang-github-sebest-xff

Golang Middleware to handle X-Forwarded-For Header

Package xff is a net/http middleware/handler to parse Forwarded HTTP Extension in Golang. Parse function parses the value of the X-Forwarded-For Header and returns the IP address. Options is a configuration container, provided by this package, to setup the XFF middleware.