From 48859d09b9fcc7a7e2d755a29f06a31e5a58f361 Mon Sep 17 00:00:00 2001 From: SashegDev Date: Thu, 10 Sep 2026 08:30:16 +0000 Subject: [PATCH] feat: hy2 SNI max.ru with insecure flag support --- aggregator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aggregator.py b/aggregator.py index fd78cba..719adad 100644 --- a/aggregator.py +++ b/aggregator.py @@ -538,6 +538,8 @@ def _build_hysteria_link(panel_link: str, sub_id: str, srv: dict) -> Optional[st "obfs-password": hy2["obfs_password"], "sni": sni, }) + if hy2.get("insecure"): + query += "&insecure=1" userinfo = f"{urllib.parse.quote(sub_id, safe='')}:{urllib.parse.quote(auth, safe='')}" return f"hysteria2://{userinfo}@{host}:{port}?{query}" except Exception: