chore: refactroing of code
Commenting code for enhancing readability
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"slices"
|
||||
)
|
||||
|
||||
// getRealIP returns user real IP
|
||||
func getRealIP(r *http.Request) string {
|
||||
if ip := r.Header.Get("X-Real-IP"); ip != "" {
|
||||
return ip
|
||||
|
||||
Reference in New Issue
Block a user