From 1b0df56db065bec6f17bf1cf05f276b4c05925ad Mon Sep 17 00:00:00 2001 From: 4shen0ne <4shen.01@gmail.com> Date: Fri, 13 Sep 2024 15:16:11 +0800 Subject: [PATCH] use uvloop if possible --- lib/controller/controller.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index fd98ffda2..f7b446c75 100755 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -72,6 +72,12 @@ if options["async_mode"]: from lib.connection.requester import AsyncRequester as Requester from lib.core.fuzzer import AsyncFuzzer as Fuzzer + + try: + import uvloop + asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) + except ImportError: + pass else: from lib.connection.requester import Requester from lib.core.fuzzer import Fuzzer