From 34fc4de0c22c18849a86ce7029b9a5c7eba9d8e6 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sat, 22 Nov 2025 19:17:18 +0800 Subject: [PATCH] Avoid xray warning (#8369) --- v2rayN/ServiceLib/Models/V2rayConfig.cs | 2 -- .../Services/CoreConfig/V2ray/V2rayOutboundService.cs | 1 - 2 files changed, 3 deletions(-) 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()) {