remote_ip v0.1.2 RemoteIp.Headers
Entry point for parsing any type of forwarding header.
Summary
Functions
Selects the appropriate headers and parses IPs out of them
Types
Functions
Selects the appropriate headers and parses IPs out of them.
headers- The entire list of thePlug.Connreq_headersallowed- The list of headersRemoteIpis configured to look for, converted to aMapSetfor efficiency
The actual parsing is delegated to the RemoteIp.Headers.* submodules:
"forwarded"is parsed byRemoteIp.Headers.Forwarded- everything else is parsed by
RemoteIp.Headers.Generic