From 97b383e8d6113f99ec477cfb27a72e3881acf703 Mon Sep 17 00:00:00 2001 From: theNekoMoe <110824872+theNekoMoe@users.noreply.github.com> Date: Tue, 9 Aug 2022 06:20:44 +0800 Subject: [PATCH] Update proxy.py (#66) --- proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.py b/proxy.py index ad803c3..cb7b65c 100644 --- a/proxy.py +++ b/proxy.py @@ -18,7 +18,7 @@ def next_layer(nextlayer: layer.NextLayer): f"{nextlayer.data_client()[:70]=}\n" ) sni = nextlayer.context.client.sni - if nextlayer.context.client.tls and sni and (sni.endswith("yuanshen.com") or sni.endswith("mihoyo.com") or sni.endswith("hoyoverse.com") or sni.endswith("starrails.com")): + if nextlayer.context.client.tls and sni and (sni.endswith("yuanshen.com") or sni.endswith("mihoyo.com") or sni.endswith("hoyoverse.com") or sni.endswith("starrails.com") or sni.endswith("bhsr.com")): ctx.log('sni:' + sni) nextlayer.context.server.address = ("127.0.0.1", 443) @@ -33,4 +33,4 @@ def request(flow: http.HTTPFlow) -> None: b"404 not found", # (optional) content {"Content-Type": "text/html"} # (optional) headers ) - return \ No newline at end of file + return