diff --git a/v2rayN/ServiceLib/Models/V2rayConfig.cs b/v2rayN/ServiceLib/Models/V2rayConfig.cs index e10cd0d9..b84a6a66 100644 --- a/v2rayN/ServiceLib/Models/V2rayConfig.cs +++ b/v2rayN/ServiceLib/Models/V2rayConfig.cs @@ -411,8 +411,6 @@ public class WsSettings4Ray public class Headers4Ray { - public string Host { get; set; } - [JsonPropertyName("User-Agent")] public string UserAgent { get; set; } } diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index 351c7bf0..53a04a5f 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -351,7 +351,6 @@ public partial class CoreConfigV2rayService if (host.IsNotEmpty()) { wsSettings.host = host; - wsSettings.headers.Host = host; } if (path.IsNotEmpty()) {