diff --git a/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs b/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs index e94635b7..51535990 100644 --- a/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs +++ b/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs @@ -134,6 +134,12 @@ public class NodeValidator { v.Error(string.Format(ResUI.MsgInvalidProperty, "TLS Certificate")); } + + // Check for deprecated allowInsecure property when TLS is enabled + if (item.AllowInsecure == "true") + { + v.Warning(ResUI.MsgAllowInsecureDeprecated); + } } if (item.StreamSecurity == Global.StreamSecurityReality) diff --git a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs index c3a00a51..c31d07ac 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs +++ b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs @@ -1914,6 +1914,15 @@ namespace ServiceLib.Resx { } } + /// + /// 查找类似 Warning: "allowInsecure" has been removed from Xray. Please use "pinnedPeerCertSha256" certificate instead. 的本地化字符串。 + /// + public static string MsgAllowInsecureDeprecated { + get { + return ResourceManager.GetString("MsgAllowInsecureDeprecated", resourceCulture); + } + } + /// /// 查找类似 {0} has a new version available: {1} 的本地化字符串。 /// diff --git a/v2rayN/ServiceLib/Resx/ResUI.fr.resx b/v2rayN/ServiceLib/Resx/ResUI.fr.resx index 818e1d0c..b97dfcb5 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.fr.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.fr.resx @@ -1743,4 +1743,4 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if Nouvelle MAJ - + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.resx b/v2rayN/ServiceLib/Resx/ResUI.resx index 6cf545db..0590b48c 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.resx @@ -1746,4 +1746,7 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if New Update + + Warning: "allowInsecure" has been removed from Xray. Please use "pinnedPeerCertSha256" certificate instead. + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx index 21149534..c205d468 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx @@ -1743,4 +1743,7 @@ 有更新 + + 警告:Xray 中已移除 "allowInsecure" 。请改用证书固定 "pinnedPeerCertSha256" + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx b/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx index 7cb2f802..7cea30b6 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx @@ -1743,4 +1743,7 @@ 有更新 + + 警告:Xray 中已移除 "allowInsecure" 。請改用憑證固定 "pinnedPeerCertSha256" + \ No newline at end of file