From 0f0e7aca6831d746c3279674eb885af9b1f70d14 Mon Sep 17 00:00:00 2001 From: Aiden Leong <1247008998@qq.com> Date: Sat, 23 Sep 2023 11:33:01 +0800 Subject: [PATCH] use pretty_host in domain filtering (#2382) --- scripts/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/proxy.py b/scripts/proxy.py index 06fea5900..640cd55fa 100644 --- a/scripts/proxy.py +++ b/scripts/proxy.py @@ -68,7 +68,7 @@ class MlgmXyysd_Animation_Company_Proxy: ] def request(self, flow: http.HTTPFlow) -> None: - if flow.request.host in self.LIST_DOMAINS: + if flow.request.pretty_host in self.LIST_DOMAINS: if USE_SSL: flow.request.scheme = "https" else: