mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 13:42:24 +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",
|
||||
"wechat-video",
|
||||
"dtls",
|
||||
"wireguard"
|
||||
"wireguard",
|
||||
"dns"
|
||||
];
|
||||
|
||||
public static readonly List<string> CoreTypes =
|
||||
|
|
|
@ -291,6 +291,8 @@ namespace ServiceLib.Models
|
|||
public object request { get; set; }
|
||||
|
||||
public object response { get; set; }
|
||||
|
||||
public string? domain { get; set; }
|
||||
}
|
||||
|
||||
public class KcpSettings4Ray
|
||||
|
|
|
@ -915,7 +915,8 @@ namespace ServiceLib.Services.CoreConfig
|
|||
kcpSettings.writeBufferSize = _config.KcpItem.WriteBufferSize;
|
||||
kcpSettings.header = new Header4Ray
|
||||
{
|
||||
type = node.HeaderType
|
||||
type = node.HeaderType,
|
||||
domain = host.IsNullOrEmpty() ? null : host
|
||||
};
|
||||
if (Utils.IsNotEmpty(path))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue