feat: add whitelist

This commit is contained in:
2026-04-11 12:59:17 -03:00
parent 11a9447e05
commit 5e8f059c49
3 changed files with 62 additions and 2 deletions
+4
View File
@@ -33,6 +33,8 @@ class Proxy
CallbackEvent<std::string&, const std::string&, std::string&> OnClientRequest;
CallbackEvent<const std::string&, std::string&, std::string&> OnServerResponse;
void addWhitelistDomain(const std::string& domain);
private:
void loop();
void handleClient(SOCKET clientSocket);
@@ -51,4 +53,6 @@ class Proxy
CertManager _certManager;
SSL_CTX* _clientCtx = nullptr;
std::vector<std::string> _whitelistDomains;
};