* Fix

* Fix res and uri

* Fix core config
This commit is contained in:
DHR60
2026-05-10 06:21:51 +00:00
committed by GitHub
parent e7973840ce
commit f8bc706cda
9 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -1816,9 +1816,9 @@ public static class ConfigHandler
ProfileItem? activeProfile = null;
if (isSub && subid.IsNotEmpty())
{
await RemoveServersViaSubid(config, subid, true);
lstOriSub = await AppManager.Instance.ProfileItems(subid);
activeProfile = lstOriSub?.FirstOrDefault(t => t.IndexId == config.IndexId);
await RemoveServersViaSubid(config, subid, true);
}
var counter = 0;
@@ -230,6 +230,9 @@ public class InnerFmt
jsonObj["TransportExtraObj"] = transportExtraObj;
jsonObj.Remove("TransportExtra");
}
// remove subid and isSub
jsonObj.Remove("Subid");
jsonObj.Remove("IsSub");
// Remove empty properties to reduce the length of the exported string
RemoveEmptyJson(jsonObj);
var jsonStr = JsonUtils.Serialize(jsonObj, false);