fix: change GoogleLoginHintAddon request method to async

This commit is contained in:
imnyang 2025-06-15 13:15:11 +09:00
commit 3850b0de2f

View file

@ -1,4 +1,3 @@
from json import load
from mitmproxy import http
import asyncio
from pkce_check import PKCEDowngradeChecker
@ -100,11 +99,11 @@ class GoogleLoginHintAddon():
else:
self.checker = None
def request(self, flow: http.HTTPFlow):
async def request(self, flow: http.HTTPFlow):
if self.checker is None:
return
try:
asyncio.run(self.checker.request(flow))
await self.checker.request(flow)
except Exception as e:
print(f"[ERROR] GoogleLoginHint Addon failed: {e}")