Clio develop
The XRP Ledger API server.
|
A simple handler to add/check elements in a whitelist. More...
#include <WhitelistHandler.hpp>
Public Member Functions | |
template<SomeResolver HostnameResolverType = Resolver> | |
WhitelistHandler (util::config::ClioConfigDefinition const &config, HostnameResolverType &&resolver={}) | |
Adds all whitelisted IPs and masks from the given config. | |
bool | isWhiteListed (std::string_view ip) const override |
Checks to see if the given IP is whitelisted. | |
![]() | |
virtual | ~WhitelistHandlerInterface ()=default |
Virtual destructor. | |
A simple handler to add/check elements in a whitelist.
|
inline |
Adds all whitelisted IPs and masks from the given config.
config | The Clio config to use |
resolver | The resolver to use for hostname resolution |
|
inlineoverridevirtual |
Checks to see if the given IP is whitelisted.
ip | The IP to check |
Implements web::dosguard::WhitelistHandlerInterface.