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