Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooManyAddresses = errors.New("too many addresses")
Functions ¶
func FromRequest ¶
FromRequest extracts the real ip address from the request parameters.
If no trusted proxy addresses are given then the result will always be the request's remote address.
In the case where a list of trusted proxies is given then the address to the left of the rightmost address in the x-forwarded-for chain is returned assuming the remote address is also a trusted proxy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.