Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
app::IpChangeHook Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IpChangeHook()

app::IpChangeHook::IpChangeHook ( web::dosguard::DOSGuardInterface & dosguard)

Construct a new IpChangeHook object.

Parameters
dosguardThe DOS guard to use.

Member Function Documentation

◆ operator()()

void app::IpChangeHook::operator() ( std::string const & oldIp,
std::string const & newIp )

The call of the function object.

Parameters
oldIpThe old IP of the connection.
newIpThe new IP of the connection.

The documentation for this class was generated from the following files: