mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-29 20:45:51 +08:00
修复解析没有结果的问题
This commit is contained in:
@@ -28,7 +28,7 @@ async def dns_query_a(hostname):
|
||||
"""
|
||||
resolver = dns_resolver()
|
||||
try:
|
||||
answer = await resolver.query(hostname, 'A')
|
||||
answer = resolver.query(hostname, 'A')
|
||||
except BaseException as exception:
|
||||
logger.log('TRACE', exception.args)
|
||||
answer = exception
|
||||
|
||||
Reference in New Issue
Block a user