Clio develop
The XRP Ledger API server.
|
A function object that is called when the IP of a connection changes (usually if proxy detected). This is used to update the DOS guard. More...
#include <WebHandlers.hpp>
Public Member Functions | |
IpChangeHook (web::dosguard::DOSGuardInterface &dosguard) | |
Construct a new IpChangeHook object. | |
void | operator() (std::string const &oldIp, std::string const &newIp) |
The call of the function object. | |
A function object that is called when the IP of a connection changes (usually if proxy detected). This is used to update the DOS guard.
app::IpChangeHook::IpChangeHook | ( | web::dosguard::DOSGuardInterface & | dosguard | ) |
Construct a new IpChangeHook object.
dosguard | The DOS guard to use. |
void app::IpChangeHook::operator() | ( | std::string const & | oldIp, |
std::string const & | newIp ) |
The call of the function object.
oldIp | The old IP of the connection. |
newIp | The new IP of the connection. |