feat: hy2 SNI max.ru with insecure flag support

This commit is contained in:
SashegDev
2026-09-10 08:30:16 +00:00
parent 6ed8df6507
commit 48859d09b9
+2
View File
@@ -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: