Skip to content

Commit

Permalink
fix: real ip header
Browse files Browse the repository at this point in the history
  • Loading branch information
pdrb committed Oct 28, 2024
1 parent 10a393b commit 15718e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gecho.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func getOrigin(headers map[string]string, remoteAddr *string) string {
origin = strings.Split(xForwardedIps, ",")[0]
}

xRealIp, ok := headers["X-Real-IP"]
xRealIp, ok := headers["X-Real-Ip"]
if ok {
origin = xRealIp
}
Expand Down

0 comments on commit 15718e4

Please sign in to comment.