mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 20:15:00 +03:00
@@ -491,7 +491,6 @@ public partial class CoreConfigV2rayService
|
|||||||
//ws
|
//ws
|
||||||
case nameof(ETransport.ws):
|
case nameof(ETransport.ws):
|
||||||
WsSettings4Ray wsSettings = new();
|
WsSettings4Ray wsSettings = new();
|
||||||
wsSettings.headers = new Headers4Ray();
|
|
||||||
|
|
||||||
if (host.IsNotEmpty())
|
if (host.IsNotEmpty())
|
||||||
{
|
{
|
||||||
@@ -503,6 +502,7 @@ public partial class CoreConfigV2rayService
|
|||||||
}
|
}
|
||||||
if (useragent.IsNotEmpty())
|
if (useragent.IsNotEmpty())
|
||||||
{
|
{
|
||||||
|
wsSettings.headers ??= new Headers4Ray();
|
||||||
wsSettings.headers.UserAgent = useragent;
|
wsSettings.headers.UserAgent = useragent;
|
||||||
}
|
}
|
||||||
streamSettings.wsSettings = wsSettings;
|
streamSettings.wsSettings = wsSettings;
|
||||||
@@ -522,6 +522,7 @@ public partial class CoreConfigV2rayService
|
|||||||
}
|
}
|
||||||
if (useragent.IsNotEmpty())
|
if (useragent.IsNotEmpty())
|
||||||
{
|
{
|
||||||
|
httpupgradeSettings.headers ??= new Headers4Ray();
|
||||||
httpupgradeSettings.headers.UserAgent = useragent;
|
httpupgradeSettings.headers.UserAgent = useragent;
|
||||||
}
|
}
|
||||||
streamSettings.httpupgradeSettings = httpupgradeSettings;
|
streamSettings.httpupgradeSettings = httpupgradeSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user