Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientIP ¶
ClientIP returns the client IP for visitor hashing and filtering. When trustProxy is true, X-Forwarded-For / X-Real-IP are scanned for the first global-unicast address; private and loopback hops are skipped.
func IsPrivateOrLoopback ¶
IsPrivateOrLoopback reports RFC1918, loopback, link-local, and ULA addresses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.