21 ProxyData(std::string_view ip, std::string_view port, DWORD timeout,
bool useHTTPS);
23 ~ProxyData() =
default;
27 std::unordered_map<std::string, const ProxyData*> routes;
28 std::vector<ProxyData> proxyData;
31 void clientConnection(
const std::string& ip, SOCKET clientSocket, sockaddr addr, std::function<
void()>& cleanup)
override;
34 ProxyServer(std::string_view ip, std::string_view port, DWORD timeout,
const json::utility::jsonObject& proxySettings);