func ClientIP(r *http.Request) string {
	IPAddress := r.Header.Get("X-Real-Ip")
	if IPAddress == "" {
		IPAddress = r.Header.Get("X-Forwarded-For")
	}

	if IPAddress == "" {
		IPAddress = r.RemoteAddr
	}

	return IPAddress
}
// ClientIP will return client ip from request.
ClientIP will return client ip from request.
// ClientIP will return client ip from request .
func ClientIP(r *http.Request) string {
	IPAddress := r.Header.Get("X-Real-Ip")
	if IPAddress == "" {
		IPAddress = r.Header.Get("X-Forwarded-For")
	}
	if IPAddress == "" {
		IPAddress = r.RemoteAddr
	}
	return IPAddress
}
func ClientIP ( r * http . Request ) string { IPAddress := r . Header . Get ( " " ) if IPAddress == " " { IPAddress = r . Header . Get ( " " ) } if IPAddress == " " { IPAddress = r . RemoteAddr } return IPAddress }
ClientIP will return client ip from request.
ClientIP will return client ip from request .