Enhancements

Add experimental async ruleset fetching.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-03-20 01:37:32 +08:00
1 parent b9fb6b8d7d
commit 0bc341f7ea
11 files changed
+306 -328

No files matched your search

+6
View File
@@ -167,6 +167,12 @@ std::string webGet(std::string url, std::string proxy)
return webGet(url, proxy, dummy);
}
std::string webGet(std::string url, std::string proxy, unsigned int cache_ttl)
{
std::string dummy;
return webGet(url, proxy, dummy, cache_ttl);
}
int curlPost(std::string url, std::string data, std::string proxy, std::string auth_token, std::string *retData)
{
CURL *curl_handle;