Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Feb 19, 2024
1 parent 8f73fb1 commit 5f939cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/handler/tool/ip2region.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func IP2Region(c echo.Context) error {
c.Set(`clientIP`, echo.H{
`RemoteAddress`: c.Request().RemoteAddress(),
`Forwarded`: c.Header(`Forwarded`),
`XForwardedFor`: c.Header(`X-Forwarded-For`),
`XForwardedProto`: c.Header(`X-Forwarded-Proto`),
`XRealIP`: c.Header(`X-Real-IP`),
`XForwardedFor`: c.Header(echo.HeaderXForwardedFor),
`XForwardedProto`: c.Header(echo.HeaderXForwardedProto),
`XRealIP`: c.Header(echo.HeaderXRealIP),
})
c.Request().Form().Set(`ip`, ip)
}
Expand Down

0 comments on commit 5f939cc

Please sign in to comment.