From 1474a063346b94f14663a637ba41b1c2d91cf1d2 Mon Sep 17 00:00:00 2001 From: niansa Date: Thu, 13 Apr 2023 10:09:23 +0200 Subject: [PATCH] Improved blockage detection --- common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.cpp b/common.cpp index 84b046a..cbea0f8 100644 --- a/common.cpp +++ b/common.cpp @@ -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; }