mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
修复解析没有结果的问题
This commit is contained in:
@@ -50,8 +50,7 @@ class BruteSRV(Module):
|
||||
tasks = []
|
||||
for name in names:
|
||||
tasks.append(self.query(name))
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
loop = asyncio.get_event_loop()
|
||||
group = asyncio.gather(*tasks)
|
||||
results = loop.run_until_complete(group)
|
||||
for answer in results:
|
||||
|
||||
Reference in New Issue
Block a user