Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve help message to clarify support for IP addresses and CIDR blocks
- Updated the help message for the --allow-ip flag to clearly indicate that both IP addresses and CIDR blocks are supported. - Provided examples for better understanding. Update TrustedProxiesMiddleware to support CIDR blocks - Before: Checked if client IP starts with any of the trusted proxies. - After: Parses client IP and trusted proxies as CIDR blocks and checks if client IP is within any of the trusted CIDR ranges. - Added handling for invalid IP addresses and appending /32 if no subnet mask is specified.
- Loading branch information