feat: warp/awg and hysteria2 improvements

This commit is contained in:
fufsob committed 2026-09-28 15:26:52 +00:00
1 parent d25fcb5468
commit cd3aa5a53f
24 files changed
+676 -18

No files matched your search

+6
View File
@@ -433,6 +433,12 @@ def parse_hysteria2(url: str, tag: str) -> dict:
if params.get("obfs") == "salamander":
ob["obfs"] = {"type": "salamander", "password": params.get("obfs-password", "")}
# Port hopping, as v2rayN writes it: "20000-30000", or several joined by commas. A fixed
# interval: hop_interval_max, which would randomise it, is newer than sing-box 1.13.
if params.get("mport"):
ob["server_ports"] = [r.strip().replace("-", ":") for r in params["mport"].split(",") if r.strip()]
ob["hop_interval"] = "30s"
return ob