mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-20 06:02:23 +00:00
Add kcp DNS masquerade support (#6852)
* Add kcp DNS masquerade support * Update V2rayConfig.cs * Update CoreConfigV2rayService.cs --------- Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
This commit is contained in:
parent
7fbb0013b0
commit
859299c712
3 changed files with 6 additions and 2 deletions
|
@ -265,7 +265,8 @@ namespace ServiceLib
|
||||||
"utp",
|
"utp",
|
||||||
"wechat-video",
|
"wechat-video",
|
||||||
"dtls",
|
"dtls",
|
||||||
"wireguard"
|
"wireguard",
|
||||||
|
"dns"
|
||||||
];
|
];
|
||||||
|
|
||||||
public static readonly List<string> CoreTypes =
|
public static readonly List<string> CoreTypes =
|
||||||
|
|
|
@ -291,6 +291,8 @@ namespace ServiceLib.Models
|
||||||
public object request { get; set; }
|
public object request { get; set; }
|
||||||
|
|
||||||
public object response { get; set; }
|
public object response { get; set; }
|
||||||
|
|
||||||
|
public string? domain { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class KcpSettings4Ray
|
public class KcpSettings4Ray
|
||||||
|
|
|
@ -915,7 +915,8 @@ namespace ServiceLib.Services.CoreConfig
|
||||||
kcpSettings.writeBufferSize = _config.KcpItem.WriteBufferSize;
|
kcpSettings.writeBufferSize = _config.KcpItem.WriteBufferSize;
|
||||||
kcpSettings.header = new Header4Ray
|
kcpSettings.header = new Header4Ray
|
||||||
{
|
{
|
||||||
type = node.HeaderType
|
type = node.HeaderType,
|
||||||
|
domain = host.IsNullOrEmpty() ? null : host
|
||||||
};
|
};
|
||||||
if (Utils.IsNotEmpty(path))
|
if (Utils.IsNotEmpty(path))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue