drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.04k stars 1.06k forks source link

Hodor plugin add exempt IPs #2021

Open Mis1eader-dev opened 1 month ago

Mis1eader-dev commented 1 month ago

Is your feature request related to a problem? Please describe. In an SSR application making requests to the backend with Hodor enabled it will get rate limited because it is treated like any other client.

Describe the solution you'd like Have a list of trusted IPs or exempt IPs.

hwc0919 commented 1 month ago

Code in RealIpResolver::matchCidr() can be reused here.