A whitelist to remove rate limits of certain IP addresses.
More...
#include <WhitelistHandler.hpp>
|
void | add (std::string_view net) |
| Add network address to whitelist.
|
|
bool | isWhiteListed (std::string_view ip) const |
| Checks to see if ip address is whitelisted.
|
|
A whitelist to remove rate limits of certain IP addresses.
◆ add()
void web::dosguard::Whitelist::add |
( |
std::string_view | net | ) |
|
Add network address to whitelist.
- Parameters
-
net | Network part of the ip address |
- Exceptions
-
std::runtime::error | when the network address is not valid |
◆ isWhiteListed()
bool web::dosguard::Whitelist::isWhiteListed |
( |
std::string_view | ip | ) |
const |
Checks to see if ip address is whitelisted.
- Parameters
-
- Exceptions
-
std::runtime::error | when the network address is not valid |
- Returns
- true if the given IP is whitelisted; false otherwise
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/web/dosguard/WhitelistHandler.hpp
- /__w/clio/clio/src/web/dosguard/WhitelistHandler.cpp