Documentation
¶
Index ¶
Constants ¶
View Source
const EmptyIP = "0.0.0.0"
Variables ¶
This section is empty.
Functions ¶
func ClientIP ¶
ClientIP implements a best effort algorithm to return the real client IP, it parses X-Real-IP and X-Forwarded-For in order to work properly with reverse-proxies such us: nginx or haproxy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.