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: