fix wireguard validity check

This commit is contained in:
Nova 2025-02-24 21:02:07 +03:30
parent 30678d49fd
commit 20998445ad

View File

@ -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;