屏蔽在线请求

This commit is contained in:
Jing Ling
2020-07-10 17:10:03 +08:00
parent 0093cfdd90
commit 0485c04224
+1 -1
View File
@@ -40,7 +40,7 @@ class Domain(object):
""" """
data_storage_dir = setting.data_storage_dir data_storage_dir = setting.data_storage_dir
extract_cache_file = data_storage_dir.joinpath('public_suffix_list.dat') extract_cache_file = data_storage_dir.joinpath('public_suffix_list.dat')
tldext = tldextract.TLDExtract(extract_cache_file) tldext = tldextract.TLDExtract(extract_cache_file, None)
result = self.match() result = self.match()
if result: if result:
return tldext(result) return tldext(result)