mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-17 09:55:00 +03:00
Update ConfigHandler.cs
This commit is contained in:
@@ -747,6 +747,10 @@ namespace v2rayN.Handler
|
|||||||
{
|
{
|
||||||
vmessItem.indexId = Utils.GetGUID(false);
|
vmessItem.indexId = Utils.GetGUID(false);
|
||||||
}
|
}
|
||||||
|
else if (vmessItem.indexId == config.indexId)
|
||||||
|
{
|
||||||
|
Global.reloadV2ray = true;
|
||||||
|
}
|
||||||
if (!config.vmess.Exists(it => it.indexId == vmessItem.indexId))
|
if (!config.vmess.Exists(it => it.indexId == vmessItem.indexId))
|
||||||
{
|
{
|
||||||
var maxSort = config.vmess.Any() ? config.vmess.Max(t => t.sort) : 0;
|
var maxSort = config.vmess.Any() ? config.vmess.Max(t => t.sort) : 0;
|
||||||
@@ -755,11 +759,6 @@ namespace v2rayN.Handler
|
|||||||
config.vmess.Add(vmessItem);
|
config.vmess.Add(vmessItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (config.vmess.Count == 1)
|
|
||||||
//{
|
|
||||||
// config.indexId = config.vmess[0].indexId;
|
|
||||||
// Global.reloadV2ray = true;
|
|
||||||
//}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user