feat: hysteria2 on UDP 443, link port override from hy2 block

This commit is contained in:
SashegDev
2026-09-10 08:25:53 +00:00
parent 64b2fa8789
commit 6ed8df6507
+1 -1
View File
@@ -529,7 +529,7 @@ def _build_hysteria_link(panel_link: str, sub_id: str, srv: dict) -> Optional[st
if not auth: if not auth:
return None return None
host = parts.hostname or "" host = parts.hostname or ""
port = parts.port or 443 port = hy2.get("port") or parts.port or 443
if not host: if not host:
return None return None
sni = hy2.get("sni") or host sni = hy2.get("sni") or host