diff --git a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs index 4498d999..1f7258ae 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs +++ b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs @@ -2661,6 +2661,15 @@ namespace ServiceLib.Resx { } } + /// + /// 查找类似 Camouflage domain 的本地化字符串。 + /// + public static string TbCamouflageDomain { + get { + return ResourceManager.GetString("TbCamouflageDomain", resourceCulture); + } + } + /// /// 查找类似 Cancel 的本地化字符串。 /// @@ -3078,6 +3087,15 @@ namespace ServiceLib.Resx { } } + /// + /// 查找类似 Host 的本地化字符串。 + /// + public static string TbHost { + get { + return ResourceManager.GetString("TbHost", resourceCulture); + } + } + /// /// 查找类似 ICMP routing policy 的本地化字符串。 /// @@ -3384,15 +3402,6 @@ namespace ServiceLib.Resx { } } - /// - /// 查找类似 Camouflage domain(host) 的本地化字符串。 - /// - public static string TbRequestHost { - get { - return ResourceManager.GetString("TbRequestHost", resourceCulture); - } - } - /// /// 查找类似 Reserved (2,3,4) 的本地化字符串。 /// @@ -3763,7 +3772,7 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 This parameter is valid only for tcp/http and ws 的本地化字符串。 + /// 查找类似 This parameter is valid only for raw/http and ws 的本地化字符串。 /// public static string TbSettingsDefUserAgentTips { get { @@ -4627,7 +4636,7 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 *Default value tcp 的本地化字符串。 + /// 查找类似 *Default value raw 的本地化字符串。 /// public static string TipNetwork { get { @@ -4654,47 +4663,47 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 *tcp camouflage type 的本地化字符串。 + /// 查找类似 raw camouflage type 的本地化字符串。 /// - public static string TransportHeaderTypeTip1 { + public static string TransportHeaderType1 { get { - return ResourceManager.GetString("TransportHeaderTypeTip1", resourceCulture); + return ResourceManager.GetString("TransportHeaderType1", resourceCulture); } } /// - /// 查找类似 *kcp camouflage type 的本地化字符串。 + /// 查找类似 kcp camouflage type 的本地化字符串。 /// - public static string TransportHeaderTypeTip2 { + public static string TransportHeaderType2 { get { - return ResourceManager.GetString("TransportHeaderTypeTip2", resourceCulture); + return ResourceManager.GetString("TransportHeaderType2", resourceCulture); } } /// - /// 查找类似 *QUIC camouflage type 的本地化字符串。 + /// 查找类似 QUIC camouflage type 的本地化字符串。 /// - public static string TransportHeaderTypeTip3 { + public static string TransportHeaderType3 { get { - return ResourceManager.GetString("TransportHeaderTypeTip3", resourceCulture); + return ResourceManager.GetString("TransportHeaderType3", resourceCulture); } } /// - /// 查找类似 *grpc mode 的本地化字符串。 + /// 查找类似 gRPC mode 的本地化字符串。 /// - public static string TransportHeaderTypeTip4 { + public static string TransportHeaderType4 { get { - return ResourceManager.GetString("TransportHeaderTypeTip4", resourceCulture); + return ResourceManager.GetString("TransportHeaderType4", resourceCulture); } } /// - /// 查找类似 *xhttp mode 的本地化字符串。 + /// 查找类似 xhttp mode 的本地化字符串。 /// - public static string TransportHeaderTypeTip5 { + public static string TransportHeaderType5 { get { - return ResourceManager.GetString("TransportHeaderTypeTip5", resourceCulture); + return ResourceManager.GetString("TransportHeaderType5", resourceCulture); } } @@ -4726,7 +4735,7 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 *grpc service name 的本地化字符串。 + /// 查找类似 gRPC service name 的本地化字符串。 /// public static string TransportPathTip4 { get { @@ -4780,7 +4789,7 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 *grpc Authority 的本地化字符串。 + /// 查找类似 gRPC Authority 的本地化字符串。 /// public static string TransportRequestHostTip5 { get { diff --git a/v2rayN/ServiceLib/Resx/ResUI.fa-Ir.resx b/v2rayN/ServiceLib/Resx/ResUI.fa-Ir.resx index 61ccbf7b..4d366066 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.fa-Ir.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.fa-Ir.resx @@ -343,7 +343,7 @@ *QUIC key/Kcp seed - *grpc serviceName + gRPC serviceName *هاست http جدا شده با کاما (،) @@ -357,17 +357,17 @@ *QUIC securty - - *tcp camouflage type + + raw camouflage type - - *kcp camouflage type + + kcp camouflage type - - *QUIC camouflage type + + QUIC camouflage type - - *حالت grpc + + حالت grpc TLS @@ -606,9 +606,6 @@ نام مستعار (ملاحظات) - - Camouflage domain(host) - روش رمزگذاری (امنیتی) @@ -619,7 +616,7 @@ TLS - *مقدار پیش فرض tcp + *مقدار پیش فرض raw نوع هسته @@ -937,7 +934,7 @@ User-Agent - این پارامتر فقط برای tcp/http و ws معتبر است + این پارامتر فقط برای raw/http و ws معتبر است FontFamily (نیاز به راه اندازی مجدد) @@ -1102,7 +1099,7 @@ پایان تست... - *grpc Authority + RPC Authority افزودن سرور [HTTP] @@ -1320,8 +1317,8 @@ The password will be validated via the command line. If a validation error causes the application to malfunction, please restart the application. The password will not be stored and must be entered again after each restart. - - *حالت xhttp + + حالت xhttp جیسون خام XHTTP Extra, فرمت: { XHTTPObject } @@ -1698,4 +1695,10 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if Legacy TUN Protect + + Camouflage domain + + + Host + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.fr.resx b/v2rayN/ServiceLib/Resx/ResUI.fr.resx index d466eedd..4dea9966 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.fr.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.fr.resx @@ -343,7 +343,7 @@ *clé de chiffrement QUIC - *nom de service gRPC + nom de service gRPC *hôte http, séparés par des virgules (,) @@ -357,17 +357,17 @@ *méthode de chiffrement QUIC - - *type de camouflage tcp + + type de camouflage raw - - *type de camouflage kcp + + type de camouflage kcp - - *type de camouflage QUIC + + type de camouflage QUIC - - *mode gRPC + + mode gRPC TLS @@ -606,9 +606,6 @@ Alias (remarks) - - Domaine de camouflage (host) - Méthode de chiffrement (security) @@ -619,7 +616,7 @@ Sécurité couche transport (TLS) - *tcp par défaut ; un mauvais choix bloque la connexion + *raw par défaut ; un mauvais choix bloque la connexion Type de Core @@ -937,7 +934,7 @@ Agent utilisateur (User-Agent) - Valable uniquement pour les protocoles tcp/http et ws + Valable uniquement pour les protocoles raw/http et ws Police actuelle (redémarrage requis) @@ -1099,7 +1096,7 @@ Arrêt du test en cours... - *Autorité gRPC + Autorité gRPC Ajouter [HTTP] @@ -1317,8 +1314,8 @@ Le mot de passe sera vérifié en ligne de commande. En cas d’échec ou de dysfonctionnement, redémarrez l’application. Il n’est pas stocké et doit être saisi à chaque redémarrage. - - *Mode XHTTP + + Mode XHTTP JSON brut XHTTP Extra, format : { XHTTPObject } @@ -1695,4 +1692,10 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if Legacy TUN Protect + + Domaine de camouflage + + + Host + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.hu.resx b/v2rayN/ServiceLib/Resx/ResUI.hu.resx index 89456f99..0776082b 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.hu.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.hu.resx @@ -343,7 +343,7 @@ *QUIC kulcs/KCP seed - *grpc szolgáltatásnév + gRPC szolgáltatásnév *http host vesszővel elválasztva (,) @@ -357,17 +357,17 @@ *QUIC biztonság - - *tcp álcázási típus + + raw álcázási típus - - *kcp álcázási típus + + kcp álcázási típus - - *QUIC álcázási típus + + QUIC álcázási típus - - *grpc mód + + gRPC mód TLS @@ -606,9 +606,6 @@ Alias (megjegyzések) - - Álcázási tartomány(host) - Titkosítási módszer (biztonság) @@ -619,7 +616,7 @@ TLS - *Alapértelmezett érték tcp + *Alapértelmezett érték raw Core Típus @@ -937,7 +934,7 @@ User-Agent - Ez a paraméter csak tcp/http és ws esetén érvényes + Ez a paraméter csak raw/http és ws esetén érvényes Betűtípus (újraindítást igényel) @@ -1102,7 +1099,7 @@ Teszt megszakítása... - *grpc Authority + gRPC Authority HTTP konfiguráció hozzáadása @@ -1320,8 +1317,8 @@ A jelszót a parancssoron keresztül ellenőrizzük. Ha egy érvényesítési hiba miatt az alkalmazás hibásan működik, indítsa újra az alkalmazást. A jelszó nem kerül tárolásra, és minden újraindítás után újra meg kell adni. - - *xhttp mód + + xhttp mód XHTTP Extra nyers JSON, formátum: { XHTTP Objektum } @@ -1698,4 +1695,10 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if Legacy TUN Protect + + Álcázási tartomány + + + Host + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.resx b/v2rayN/ServiceLib/Resx/ResUI.resx index 569877d7..86e780d9 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.resx @@ -343,7 +343,7 @@ *QUIC key/KCP seed - *grpc service name + gRPC service name *http host separated by commas (,) @@ -357,17 +357,17 @@ *QUIC security - - *tcp camouflage type + + raw camouflage type - - *kcp camouflage type + + kcp camouflage type - - *QUIC camouflage type + + QUIC camouflage type - - *grpc mode + + gRPC mode TLS @@ -606,9 +606,6 @@ Alias (remarks) - - Camouflage domain(host) - Encryption method (security) @@ -619,7 +616,7 @@ TLS - *Default value tcp + *Default value raw Core Type @@ -937,7 +934,7 @@ User-Agent - This parameter is valid only for tcp/http and ws + This parameter is valid only for raw/http and ws Font family (requires restart) @@ -1102,7 +1099,7 @@ Test terminating... - *grpc Authority + gRPC Authority Add [HTTP] @@ -1320,8 +1317,8 @@ The password will be validated via the command line. If a validation error causes the application to malfunction, please restart the application. The password will not be stored and must be entered again after each restart. - - *xhttp mode + + xhttp mode XHTTP Extra raw JSON, format: { XHTTP Object } @@ -1698,4 +1695,10 @@ The "Get Certificate" action may fail if a self-signed certificate is used or if Legacy TUN Protect + + Camouflage domain + + + Host + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Resx/ResUI.ru.resx b/v2rayN/ServiceLib/Resx/ResUI.ru.resx index 9c6ff77e..974f733b 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.ru.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.ru.resx @@ -343,7 +343,7 @@ *QUIC-ключ / KCP-seed - Имя сервиса *gRPC + Имя сервиса gRPC *http-хосты, разделённые запятыми (,) @@ -357,17 +357,17 @@ Безопасность *QUIC - - Тип *TCP-камуфляжа + + Тип raw-камуфляжа - - Тип *KCP-камуфляжа + + Тип KCP-камуфляжа - - Тип *QUIC-камуфляжа + + Тип QUIC-камуфляжа - - Режим *gRPC + + Режим gRPC TLS @@ -606,9 +606,6 @@ Псевдоним (remarks) - - Камуфляжный домен (host) - Метод шифрования (security) @@ -619,7 +616,7 @@ TLS - *По умолчанию TCP + *По-умолчанию raw Ядро @@ -937,7 +934,7 @@ User-Agent - Параметр действует только для TCP/HTTP и WebSocket (WS) + Параметр действует только для raw/HTTP и WebSocket (WS) Шрифт (требуется перезапуск) @@ -1102,7 +1099,7 @@ Завершение тестирования... - * gRPC Authority (HTTP/2 псевдозаголовок :authority) + gRPC Authority (HTTP/2 псевдозаголовок :authority) Добавить сервер [HTTP] @@ -1320,8 +1317,8 @@ Пароль sudo будет проверен в терминале. Если из-за ошибки проверки приложение начнёт работать некорректно, перезапустите его. Пароль не сохраняется — его нужно вводить после каждого перезапуска. - - *XHTTP-режим + + XHTTP-режим Дополнительный сырой JSON для XHTTP, формат: { XHTTP Object } @@ -1698,4 +1695,10 @@ Устаревшая защита TUN (Legacy Protect) + + Камуфляжный домен + + + Host + diff --git a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx index 8c628644..dbc9d421 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx @@ -343,7 +343,7 @@ *QUIC 加密密钥 - *grpc serviceName + gRPC serviceName *http host 中间逗号 (,) 分隔 @@ -357,17 +357,17 @@ *QUIC 加密方式 - - *tcp 伪装类型 + + raw 伪装类型 - - *kcp 伪装类型 + + kcp 伪装类型 - - *QUIC 伪装类型 + + QUIC 伪装类型 - - *grpc 模式 + + gRPC 模式 TLS @@ -606,9 +606,6 @@ 别名 (remarks) - - 伪装域名 (host) - 加密方式 (security) @@ -619,7 +616,7 @@ 传输层安全 (TLS) - *默认 tcp,选错会无法连接 + *默认 raw,选错会无法连接 Core 类型 @@ -937,7 +934,7 @@ 用户代理 (User-Agent) - 仅对 tcp/http、ws 协议生效 + 仅对 raw/http、ws 协议生效 当前字体 (需重启) @@ -1099,7 +1096,7 @@ 测试终止中... - *grpc Authority + gRPC Authority 添加 [HTTP] @@ -1317,8 +1314,8 @@ 密码将调用命令行校验,如果因为校验错误导致无法正常运行时,请重启本应用。 密码不会存储,每次重启后都需要再次输入。 - - *XHTTP 模式 + + XHTTP 模式 XHTTP Extra 原始 JSON,格式: { XHTTPObject } @@ -1695,4 +1692,10 @@ 旧版 TUN 保护 + + 伪装域名 + + + Host + \ 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 59a9fc9f..d4b672e6 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx @@ -343,7 +343,7 @@ *QUIC 加密金鑰 - *grpc serviceName + gRPC serviceName *http host 中間逗號 (,) 分隔 @@ -357,17 +357,17 @@ *QUIC 加密方式 - - *TCP 偽裝類型 + + raw 偽裝類型 - - *KCP 偽裝類型 + + KCP 偽裝類型 - - *QUIC 偽裝類型 + + QUIC 偽裝類型 - - *GRPC 模式 + + gRPC 模式 TLS @@ -606,9 +606,6 @@ 別名 (remarks) - - 偽裝域名 (host) - 加密方式 (security) @@ -619,7 +616,7 @@ 傳輸層安全性 (TLS) - *預設 TCP,選錯會無法連線 + *預設 raw,選錯會無法連線 Core 類型 @@ -937,7 +934,7 @@ 使用者代理 (User-Agent) - 僅對 TCP/HTTP、WS 協定生效 + 僅對 raw/HTTP、WS 協定生效 目前字型 (需重啟) @@ -1099,7 +1096,7 @@ 測試終止中... - *grpc Authority + gRPC Authority 新增 [HTTP] 節點 @@ -1317,8 +1314,8 @@ 密碼將調用命令行校驗,如果因為校驗錯誤導致無法正常運行時,請重啟本應用。密碼不會存儲,每次重啟後都需要再次輸入。 - - *xhttp 模式 + + xhttp 模式 XHTTP Extra 原始 JSON,格式: { XHTTPObject } @@ -1695,4 +1692,10 @@ Legacy TUN Protect + + 偽裝域名 + + + Host + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index 5cea3eac..7c5d94ec 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -642,7 +642,8 @@ public partial class CoreConfigV2rayService streamSettings.finalmask = hy2Finalmask; break; - case nameof(ETransport.raw): + default: + // raw if (headerType == Global.RawHeaderHttp) { RawSettings4Ray rawSettings = new() @@ -673,9 +674,6 @@ public partial class CoreConfigV2rayService streamSettings.rawSettings = rawSettings; } break; - - default: - break; } if (!_node.Finalmask.IsNullOrEmpty()) diff --git a/v2rayN/v2rayN.Desktop/Views/AddServerWindow.axaml b/v2rayN/v2rayN.Desktop/Views/AddServerWindow.axaml index 4ecb0a88..1d2bb899 100644 --- a/v2rayN/v2rayN.Desktop/Views/AddServerWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/AddServerWindow.axaml @@ -726,7 +726,7 @@ Grid.Column="0" Margin="{StaticResource Margin4}" VerticalAlignment="Center" - Text="{x:Static resx:ResUI.TbHeaderType}" /> + Text="{x:Static resx:ResUI.TransportHeaderType1}" /> + Text="{x:Static resx:ResUI.TbCamouflageDomain}" /> + Text="{x:Static resx:ResUI.TransportHeaderType5}" /> + Text="{x:Static resx:ResUI.TbHost}" /> + Text="{x:Static resx:ResUI.TransportHeaderType2}" /> + Text="{x:Static resx:ResUI.TransportHeaderType4}" /> + Text="{x:Static resx:ResUI.TransportRequestHostTip5}" /> + Text="{x:Static resx:ResUI.TransportPathTip4}" /> + Text="{x:Static resx:ResUI.TbHost}" /> + Text="{x:Static resx:ResUI.TbHost}" /> + Text="{x:Static resx:ResUI.TransportHeaderType1}" /> + Text="{x:Static resx:ResUI.TbCamouflageDomain}" /> + Text="{x:Static resx:ResUI.TransportHeaderType5}" /> + Text="{x:Static resx:ResUI.TbHost}" /> + Text="{x:Static resx:ResUI.TransportHeaderType2}" /> + Text="{x:Static resx:ResUI.TransportHeaderType4}" /> + Text="{x:Static resx:ResUI.TransportRequestHostTip5}" /> + Text="{x:Static resx:ResUI.TransportPathTip4}" /> + Text="{x:Static resx:ResUI.TbHost}" /> + Text="{x:Static resx:ResUI.TbHost}" />