mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
clash meta hysteria2 yml
This commit is contained in:
@@ -434,6 +434,20 @@ namespace NekoGui_sub {
|
|||||||
auto downMbps = Node2QString(proxy["down"]).split(" ")[0].toInt();
|
auto downMbps = Node2QString(proxy["down"]).split(" ")[0].toInt();
|
||||||
if (upMbps > 0) bean->uploadMbps = upMbps;
|
if (upMbps > 0) bean->uploadMbps = upMbps;
|
||||||
if (downMbps > 0) bean->downloadMbps = downMbps;
|
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") {
|
} else if (type == "tuic") {
|
||||||
auto bean = ent->QUICBean();
|
auto bean = ent->QUICBean();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user