Avoid xray warning

This commit is contained in:
DHR60 2025-11-22 17:04:39 +08:00
parent 91536d3923
commit 0b5627941f
2 changed files with 0 additions and 3 deletions

View file

@ -411,8 +411,6 @@ public class WsSettings4Ray
public class Headers4Ray public class Headers4Ray
{ {
public string Host { get; set; }
[JsonPropertyName("User-Agent")] [JsonPropertyName("User-Agent")]
public string UserAgent { get; set; } public string UserAgent { get; set; }
} }

View file

@ -351,7 +351,6 @@ public partial class CoreConfigV2rayService
if (host.IsNotEmpty()) if (host.IsNotEmpty())
{ {
wsSettings.host = host; wsSettings.host = host;
wsSettings.headers.Host = host;
} }
if (path.IsNotEmpty()) if (path.IsNotEmpty())
{ {