Skip to content

Commit

Permalink
clash meta hysteria2 yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Sep 24, 2023
1 parent ab595e0 commit 6029b42
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sub/GroupUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,20 @@ namespace NekoGui_sub {
auto downMbps = Node2QString(proxy["down"]).split(" ")[0].toInt();
if (upMbps > 0) bean->uploadMbps = upMbps;
if (downMbps > 0) bean->downloadMbps = downMbps;
} else if (type == "hysteria2") {
auto bean = ent->QUICBean();

// bean->hopPort = Node2QString(proxy["ports"]);

bean->allowInsecure = Node2Bool(proxy["skip-cert-verify"]);
bean->caText = Node2QString(proxy["ca-str"]);
bean->sni = Node2QString(proxy["sni"]);

bean->obfsPassword = Node2QString(proxy["obfs-password"]);
bean->password = Node2QString(proxy["password"]);

bean->uploadMbps = Node2QString(proxy["up"]).split(" ")[0].toInt();
bean->downloadMbps = Node2QString(proxy["down"]).split(" ")[0].toInt();
} else if (type == "tuic") {
auto bean = ent->QUICBean();

Expand Down

0 comments on commit 6029b42

Please sign in to comment.