handler: gather real ip for rules, check X-Real-IP

This commit is contained in:
Vaxry
2025-04-15 14:37:54 +01:00
parent a0577efed7
commit 15689ca20a
4 changed files with 60 additions and 19 deletions

View File

@@ -20,6 +20,7 @@ class CServerHandler : public Pistache::Http::Handler {
void proxyPass(const Pistache::Http::Request& req, Pistache::Http::ResponseWriter& response);
void challengeSubmitted(const Pistache::Http::Request& req, Pistache::Http::ResponseWriter& response);
std::string fingerprintForRequest(const Pistache::Http::Request& req);
std::string ipForRequest(const Pistache::Http::Request& req);
bool isResourceCheckpoint(const std::string_view& res);