mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-05 02:10:07 +05:00
Update ConfigHandler.cs
This commit is contained in:
@@ -197,7 +197,6 @@ namespace v2rayN.Handler
|
|||||||
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