Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33d541f067 | ||
|
|
957ffa203d |
@@ -1007,8 +1007,11 @@ namespace v2rayN.Forms
|
|||||||
|
|
||||||
private void SetTestResult(int k, string txt)
|
private void SetTestResult(int k, string txt)
|
||||||
{
|
{
|
||||||
config.vmess[k].testResult = txt;
|
if (k < lvServers.Items.Count)
|
||||||
lvServers.Items[k].SubItems["testResult"].Text = txt;
|
{
|
||||||
|
config.vmess[k].testResult = txt;
|
||||||
|
lvServers.Items[k].SubItems["testResult"].Text = txt;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private void ClearTestResult()
|
private void ClearTestResult()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -196,8 +196,7 @@ namespace v2rayN.Handler
|
|||||||
vmessItem.headerType = vmessItem.headerType.TrimEx();
|
vmessItem.headerType = vmessItem.headerType.TrimEx();
|
||||||
vmessItem.requestHost = vmessItem.requestHost.TrimEx();
|
vmessItem.requestHost = vmessItem.requestHost.TrimEx();
|
||||||
vmessItem.path = vmessItem.path.TrimEx();
|
vmessItem.path = vmessItem.path.TrimEx();
|
||||||
vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();
|
vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();
|
||||||
vmessItem.allowInsecure = config.defaultAllowInsecure;
|
|
||||||
|
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
{
|
{
|
||||||
@@ -211,6 +210,10 @@ namespace v2rayN.Handler
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//添加
|
//添加
|
||||||
|
if (Utils.IsNullOrEmpty(vmessItem.allowInsecure))
|
||||||
|
{
|
||||||
|
vmessItem.allowInsecure = config.defaultAllowInsecure;
|
||||||
|
}
|
||||||
config.vmess.Add(vmessItem);
|
config.vmess.Add(vmessItem);
|
||||||
if (config.vmess.Count == 1)
|
if (config.vmess.Count == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user