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"],
|
"obfs-password": hy2["obfs_password"],
|
||||||
"sni": sni,
|
"sni": sni,
|
||||||
})
|
})
|
||||||
|
if hy2.get("insecure"):
|
||||||
|
query += "&insecure=1"
|
||||||
userinfo = f"{urllib.parse.quote(sub_id, safe='')}:{urllib.parse.quote(auth, safe='')}"
|
userinfo = f"{urllib.parse.quote(sub_id, safe='')}:{urllib.parse.quote(auth, safe='')}"
|
||||||
return f"hysteria2://{userinfo}@{host}:{port}?{query}"
|
return f"hysteria2://{userinfo}@{host}:{port}?{query}"
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user