Compare commits

..

2 Commits
3.13 ... 3.14

Author SHA1 Message Date
2dust
33d541f067 bug fix 2020-04-08 08:37:54 +08:00
2dust
957ffa203d Update ConfigHandler.cs 2020-04-01 13:55:37 +08:00
2 changed files with 10 additions and 4 deletions

View File

@@ -1006,10 +1006,13 @@ namespace v2rayN.Forms
#region
private void SetTestResult(int k, string txt)
{
if (k < lvServers.Items.Count)
{
config.vmess[k].testResult = txt;
lvServers.Items[k].SubItems["testResult"].Text = txt;
}
}
private void ClearTestResult()
{
foreach (int s in lvSelecteds)

View File

@@ -197,7 +197,6 @@ namespace v2rayN.Handler
vmessItem.requestHost = vmessItem.requestHost.TrimEx();
vmessItem.path = vmessItem.path.TrimEx();
vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();
vmessItem.allowInsecure = config.defaultAllowInsecure;
if (index >= 0)
{
@@ -211,6 +210,10 @@ namespace v2rayN.Handler
else
{
//添加
if (Utils.IsNullOrEmpty(vmessItem.allowInsecure))
{
vmessItem.allowInsecure = config.defaultAllowInsecure;
}
config.vmess.Add(vmessItem);
if (config.vmess.Count == 1)
{