pool of UeberBackends?
*/
-#ifdef CURLOPT_RESOLVE
class IsUpOracle
{
private:
}
}
+
void IsUpOracle::checkURLThread(ComboAddress rem, std::string url, opts_t opts)
{
setDown(rem, url, opts);
sleep(5);
}
}
-#endif
-#ifdef CURLOPT_RESOLVE
-IsUpOracle g_up;
-#endif
+IsUpOracle g_up;
namespace {
template<typename T, typename C>
bool doCompare(const T& var, const std::string& res, const C& cmp)
return std::string("unknown");
});
-#ifdef CURLOPT_RESOLVE
+
lua.writeFunction("ifportup", [&bestwho](int port, const vector<pair<int, string> >& ips, const boost::optional<std::unordered_map<string,string>> options) {
vector<ComboAddress> candidates;
std::unordered_map<string, string> opts;
return ret;
});
-#endif
return url.substr(pos, endpos-pos);
}
-#ifdef CURLOPT_RESOLVE
void MiniCurl::setupURL(const std::string& str, const ComboAddress* rem, const ComboAddress* src)
{
if(rem) {
d_data.clear();
}
-
std::string MiniCurl::getURL(const std::string& str, const ComboAddress* rem, const ComboAddress* src)
{
setupURL(str, rem, src);
d_data.clear();
return ret;
}
-#endif
\ No newline at end of file