feat: hy2 SNI max.ru with insecure flag support
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user