[Feature request] Whitelist port
mcshaz opened this issue · comments
Brent McSharry commented
During development, most people will use localhost
/127.0.0.1
.
Problem:
If we have a site where we expect a whitelist, it becomes important to test that sites within and outside the whitelist receive different rate limited responses. It is easy enough to send requests from different localhost ports, but with the current methods in the library, all port information is stripped away, and thus all requests regardless of port are treated the same way.
Would it be possible to be able to include a port range in the whitelist (e.g. for an .NET core API running under IIS express we might specify the ports ":44300-44310")?
Thanks for considering