mirror of
https://gitlab.com/niansa/nosni.git
synced 2025-03-06 20:53:26 +01:00
Improved blockage detection
This commit is contained in:
parent
8499c86300
commit
1474a06334
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ bool is_domain_blocked(const char *hostname) {
|
|||
auto status = curlpp::infos::ResponseCode::get(req);
|
||||
|
||||
// Check result
|
||||
fres = status > 400;
|
||||
fres = status == 403;
|
||||
} catch (...) {
|
||||
fres = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue