This commit is contained in:
Jing Ling
2020-11-12 02:18:15 +08:00
parent 8849b9cf15
commit 6e9c5b4f74
2 changed files with 2 additions and 4 deletions
-3
View File
@@ -219,10 +219,7 @@ def bulk_request(domain, req_data, ret=False):
urls_queue = Queue()
total = len(req_data)
for index, info in enumerate(req_data):
try:
url = info.get('url')
except Exception:
pass
urls_queue.put((index, url))
session = get_session()
thread_count = req_thread_count()
+1
View File
@@ -523,6 +523,7 @@ def check_net():
logger.log('DEBUG', f'The computer is located in China')
return True, True
else:
logger.log('DEBUG', f'The computer is not located in China')
return True, False