feat: add whitelist
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user