mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
fix wireguard validity check
This commit is contained in:
parent
30678d49fd
commit
20998445ad
@ -94,8 +94,9 @@ namespace NekoGui {
|
||||
{
|
||||
auto out = ent->bean->BuildCoreObjSingBox();
|
||||
auto outArr = QJsonArray{out.outbound};
|
||||
auto key = ent->type == "wireguard" ? "endpoints" : "outbounds";
|
||||
conf = {
|
||||
{"outbounds", outArr},
|
||||
{key, outArr},
|
||||
};
|
||||
}
|
||||
bool ok;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user