mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
屏蔽在线请求
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user