Skip to content

Commit 34fc4de

Browse files
authored
Avoid xray warning (2dust#8369)
1 parent 91536d3 commit 34fc4de

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

v2rayN/ServiceLib/Models/V2rayConfig.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ public class WsSettings4Ray
411411

412412
public class Headers4Ray
413413
{
414-
public string Host { get; set; }
415-
416414
[JsonPropertyName("User-Agent")]
417415
public string UserAgent { get; set; }
418416
}

v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ private async Task<int> GenBoundStreamSettings(ProfileItem node, Outbounds4Ray o
351351
if (host.IsNotEmpty())
352352
{
353353
wsSettings.host = host;
354-
wsSettings.headers.Host = host;
355354
}
356355
if (path.IsNotEmpty())
357356
{

0 commit comments

Comments
 (0)