Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor IpToContext middleware for simplification
Replaced nested function and extra type assertion with a more straightforward implementation using http.HandlerFunc. This improves code readability and maintainability while achieving the same functionality of setting the client's IP in the request context.
- Loading branch information