mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-14 12:29:13 +00:00
V2rayConfig: Todo: add allowInsecure config
Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
parent
f6b044c10c
commit
d4715fb9e1
3 changed files with 7 additions and 1 deletions
|
@ -389,7 +389,8 @@ namespace v2rayN.Handler
|
||||||
type = vmessItem.headerType,
|
type = vmessItem.headerType,
|
||||||
host = vmessItem.requestHost,
|
host = vmessItem.requestHost,
|
||||||
path = vmessItem.path,
|
path = vmessItem.path,
|
||||||
tls = vmessItem.streamSecurity
|
tls = vmessItem.streamSecurity,
|
||||||
|
allowInsecure = vmessItem.allowInsecure
|
||||||
};
|
};
|
||||||
|
|
||||||
url = Utils.ToJson(vmessQRCode);
|
url = Utils.ToJson(vmessQRCode);
|
||||||
|
|
|
@ -1234,6 +1234,7 @@ namespace v2rayN.Handler
|
||||||
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
|
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
|
||||||
vmessItem.path = Utils.ToString(vmessQRCode.path);
|
vmessItem.path = Utils.ToString(vmessQRCode.path);
|
||||||
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
|
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
|
||||||
|
vmessItem.allowInsecure = Utils.ToString(vmessQRCode.allowInsecure);
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigHandler.UpgradeServerVersion(ref vmessItem);
|
ConfigHandler.UpgradeServerVersion(ref vmessItem);
|
||||||
|
|
|
@ -49,5 +49,9 @@ namespace v2rayN.Mode
|
||||||
/// 底层传输安全
|
/// 底层传输安全
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string tls { get; set; } = string.Empty;
|
public string tls { get; set; } = string.Empty;
|
||||||
|
/// <summary>
|
||||||
|
/// 允许不安全的TLS
|
||||||
|
/// </summary>
|
||||||
|
public string allowInsecure { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue