1
0
Fork 0
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:
niansa/tuxifan 2023-04-13 10:09:23 +02:00
parent 8499c86300
commit 1474a06334

View file

@ -48,7 +48,7 @@ bool is_domain_blocked(const char *hostname) {
auto status = curlpp::infos::ResponseCode::get(req); auto status = curlpp::infos::ResponseCode::get(req);
// Check result // Check result
fres = status > 400; fres = status == 403;
} catch (...) { } catch (...) {
fres = true; fres = true;
} }