mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-09 22:15:00 +03:00
Refactor core config gen (#8768)
* Refactor core config gen * Update tag naming * Support sing-box 1.11 DNS * Fix * Optimize ProfileItem acquisition speed * Fix * Fix
This commit is contained in:
@@ -801,7 +801,8 @@ public class ProfilesViewModel : MyReactiveObject
|
||||
|
||||
if (blClipboard)
|
||||
{
|
||||
var result = await CoreConfigHandler.GenerateClientConfig(item, null);
|
||||
var context = await CoreConfigHandler.BuildCoreConfigContext(_config, item);
|
||||
var result = await CoreConfigHandler.GenerateClientConfig(context, null);
|
||||
if (result.Success != true)
|
||||
{
|
||||
NoticeManager.Instance.Enqueue(result.Msg);
|
||||
@@ -824,7 +825,8 @@ public class ProfilesViewModel : MyReactiveObject
|
||||
{
|
||||
return;
|
||||
}
|
||||
var result = await CoreConfigHandler.GenerateClientConfig(item, fileName);
|
||||
var context = await CoreConfigHandler.BuildCoreConfigContext(_config, item);
|
||||
var result = await CoreConfigHandler.GenerateClientConfig(context, fileName);
|
||||
if (result.Success != true)
|
||||
{
|
||||
NoticeManager.Instance.Enqueue(result.Msg);
|
||||
|
||||
Reference in New Issue
Block a user