Merge pull request #47 from gengjiawen/patch-1

support surge hy2 port-hopping
This commit is contained in:
asdlokj1qpi23
2025-07-29 10:22:55 +08:00
committed by GitHub

View File

@@ -1088,6 +1088,8 @@ std::string proxyToSurge(std::vector<Proxy> &nodes, const std::string &base_conf
proxy += ",server-cert-fingerprint-sha256=" + x.Fingerprint;
if (!x.ServerName.empty())
proxy += ",sni=" + x.ServerName;
if (!x.Ports.empty())
proxy += ",port-hopping=" + x.Ports;
break;
case ProxyType::WireGuard:
if (surge_ver < 4 && surge_ver != -3)