Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAWS ¶
FilterAWS returns the last address in the X-Forwarded-For chain. This is intended for services behind AWS ELB as it appends the client IP address if one is already provided, to prevent spoofing. For more info see: https://git.io/Jf5nh
func FilterDefault ¶
FilterDefault is used if no Filter function is passed.
func FilterPublicAddress ¶
FilterPublicAddress returns the first address that is not under private CIDR blocks. List of private CIDR blocks can be seen on:
Types ¶
Click to show internal directories.
Click to hide internal directories.