Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRequest ¶
FromRequest returns the client's real IP from http request headers. Priority: X-Forwarded-For (leftmost) > X-Real-IP > CF-Connecting-IP > True-Client-IP > X-Client-IP > RemoteAddr X-Forwarded-For format is "client, proxy1, proxy2", so the leftmost IP is the real client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.