https://github.com/2dust/v2rayN/issues/10043
This commit is contained in:
2dust
2026-08-28 14:24:12 +08:00
parent 0a2f3e4f22
commit 589ccc6e06

View File

@@ -1753,15 +1753,13 @@ public static class ConfigHandler
{
lstProfiles = SingboxFmt.ResolveToCustomOutbound(strData, subRemarks);
}
if (lstProfiles.Count == 0)
if (lstProfiles.Count > 0)
{
return -1;
}
var count = await AddBatchCustomServers(config, lstProfiles, subid, isSub);
if (count > 0)
{
return count;
var count = await AddBatchCustomServers(config, lstProfiles, subid, isSub);
if (count > 0)
{
return count;
}
}
if (HtmlPageFmt.IsHtmlPage(strData))
@@ -1801,15 +1799,13 @@ public static class ConfigHandler
_ => null,
};
if ((lstProfiles?.Count ?? 0) == 0)
if (lstProfiles?.Count > 0)
{
return -1;
}
var count = await AddBatchCustomServers(config, lstProfiles, subid, isSub);
if (count > 0)
{
return count;
var count = await AddBatchCustomServers(config, lstProfiles, subid, isSub);
if (count > 0)
{
return count;
}
}
return await SaveCustomRawFileServer(config, strData, subid, isSub, subItem, customCoreType);