Skip to content

Commit

Permalink
更新 test_doh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired authored Dec 7, 2024
1 parent ebbc07e commit b1b836c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_doh.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ async def compare_dns_results(domain: str, servers: List[str]):
if not server_info:
results.append({'server': server_name, 'error': 'Invalid server'})
continue



if server_info['type'] == 'udp':
result = perform_udp_query(domain, server_info['server'], server_info['port'])
elif server_info['type'] == 'doh':
Expand All @@ -126,5 +127,5 @@ async def main():


# 运行主函数
if __name__ == "__main__":
if __name__=="__main__":
asyncio.run(main())

0 comments on commit b1b836c

Please sign in to comment.