1
0
Fork 0
mirror of https://gitlab.com/niansa/nosni.git synced 2025-03-06 20:53:26 +01:00

Lowered timeout

This commit is contained in:
niansa/tuxifan 2023-04-13 10:11:13 +02:00
parent 1474a06334
commit a1b20642ee

View file

@ -42,6 +42,7 @@ bool is_domain_blocked(const char *hostname) {
curlpp::Easy req;
req.setOpt<curlpp::options::Url>(std::string("http://")+hostname);
req.setOpt<curlpp::options::NoBody>(true);
req.setOpt<curlpp::options::Timeout>(6);
req.perform();
// Get status code