mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 13:48:52 +00:00
bug fix
This commit is contained in:
parent
fada5f99bb
commit
31b7857238
1 changed files with 6 additions and 1 deletions
|
@ -298,7 +298,8 @@ namespace v2rayN.Handler
|
|||
sni = config.vmess[index].sni
|
||||
};
|
||||
|
||||
config.vmess.Insert(index + 1, vmessItem); // 插入到下一项
|
||||
//config.vmess.Insert(index + 1, vmessItem); // 插入到下一项
|
||||
AddServerCommon(ref config, vmessItem);
|
||||
|
||||
ToJsonFile(config);
|
||||
|
||||
|
@ -725,6 +726,7 @@ namespace v2rayN.Handler
|
|||
return -1;
|
||||
}
|
||||
|
||||
var indexId = config.indexId();
|
||||
//copy sub items
|
||||
List<VmessItem> lstOriSub = null;
|
||||
if (!Utils.IsNullOrEmpty(subid))
|
||||
|
@ -804,6 +806,9 @@ namespace v2rayN.Handler
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
SetIndex(ref config, indexId);
|
||||
|
||||
ToJsonFile(config);
|
||||
return countServers;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue