Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRealIP ¶
GetRealIP retrieves the user's real IP address. This method is suitable for HTTP services configured with load balancing. Using the ClientIP() method from gin.context might fetch a potentially spoofed X-Forwarded-For data by users. By using this method, as long as there is a load balancer configured, the correct IP can always be retrieved.
func GetRealIPFromGin ¶ added in v0.2.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.