Avoid xray warning (#8369)

This commit is contained in:
DHR60
2025-11-22 19:17:18 +08:00
committed by GitHub
parent 91536d3923
commit 34fc4de0c2
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())
{ {