fix surge error,(#27) (#28)

This commit is contained in:
asdlokj1qpi23
2025-04-27 12:42:34 +08:00
parent 4787d821bd
commit 3a0784f1f6

View File

@@ -1068,7 +1068,7 @@ std::string proxyToSurge(std::vector<Proxy> &nodes, const std::string &base_conf
case ProxyType::Hysteria2:
if (surge_ver < 4)
continue;
proxy = "hysteria, " + hostname + ", " + port + ", password=" + password;
proxy = "hysteria2, " + hostname + ", " + port + ", password=" + password;
if (!x.DownMbps.empty()) {
if (!isNumeric(x.DownMbps)) {
size_t pos = x.DownMbps.find(search);