Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientIP ¶
ClientIP extracts the real client IP address from remoteAddr, X-Forwarded-For, and X-Real-IP using the rightmost non-trusted proxy traversal algorithm.
func IsTrustedProxy ¶
IsTrustedProxy checks if an IP string matches any trusted IP or CIDR block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.