From 612b945ae6e806960881817cfa19a16b39258585 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Sun, 7 Apr 2024 15:44:25 +0800 Subject: [PATCH] chore:checkByDomainBlacklist --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index ed340ac54c..ae8a5ac512 100644 --- a/utils.py +++ b/utils.py @@ -234,7 +234,8 @@ def checkByDomainBlacklist(url): Check by domain blacklist """ domain_blacklist = [ - urlparse(domain).netloc for domain in getattr(config, "domain_blacklist", []) + urlparse(domain).netloc if urlparse(domain).scheme else domain + for domain in getattr(config, "domain_blacklist", []) ] return urlparse(url).netloc not in domain_blacklist