mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 01:34:08 +00:00
Fix
This commit is contained in:
parent
ac9d0a0193
commit
1412036b10
3 changed files with 11 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"tag": "tun",
|
||||
"tag": "tun-in",
|
||||
"protocol": "tun",
|
||||
"settings": {
|
||||
"name": "xray_tun",
|
||||
|
|
|
|||
|
|
@ -87,8 +87,14 @@ public partial class CoreConfigSingboxService
|
|||
});
|
||||
_coreConfig.route.rules.Add(new()
|
||||
{
|
||||
protocol = ["dns"],
|
||||
action = "hijack-dns"
|
||||
type = "logical",
|
||||
mode = "or",
|
||||
action = "hijack-dns",
|
||||
rules =
|
||||
[
|
||||
new() { port = [53] },
|
||||
new() { protocol = ["dns"] },
|
||||
],
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
@ -96,7 +102,7 @@ public partial class CoreConfigSingboxService
|
|||
_coreConfig.route.rules.Add(new()
|
||||
{
|
||||
port = [53],
|
||||
action = "hijack-dns"
|
||||
action = "hijack-dns",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ public partial class CoreConfigV2rayService
|
|||
});
|
||||
_coreConfig.routing.rules.Add(new()
|
||||
{
|
||||
inboundTag = ["tun-in"],
|
||||
port = "53",
|
||||
outboundTag = Global.DnsOutboundTag,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue