From b1b836cd231dbba7051a52b6c1d96d40e7828707 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20test=5Fdoh.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_doh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_doh.py b/test_doh.py index 5a17a96..339747c 100644 --- a/test_doh.py +++ b/test_doh.py @@ -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': @@ -126,5 +127,5 @@ async def main(): # 运行主函数 -if __name__ == "__main__": +if __name__=="__main__": asyncio.run(main()) \ No newline at end of file