mirror of
https://gitlab.com/niansa/nosni.git
synced 2025-03-06 20:53:26 +01:00
Lowered timeout
This commit is contained in:
parent
1474a06334
commit
a1b20642ee
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue