mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-28 08:04:58 +03:00
Fix (#9771)
This commit is contained in:
@@ -35,18 +35,21 @@ public partial class CoreConfigSingboxService
|
|||||||
}
|
}
|
||||||
|
|
||||||
var lstDirectExe = BuildRoutingDirectExe();
|
var lstDirectExe = BuildRoutingDirectExe();
|
||||||
_coreConfig.route.rules.Add(new()
|
if (lstDirectExe.Count > 0)
|
||||||
{
|
{
|
||||||
port = [53],
|
_coreConfig.route.rules.Add(new()
|
||||||
action = "hijack-dns",
|
{
|
||||||
process_path = lstDirectExe
|
port = [53],
|
||||||
});
|
action = "hijack-dns",
|
||||||
|
process_path = lstDirectExe,
|
||||||
|
});
|
||||||
|
|
||||||
_coreConfig.route.rules.Add(new()
|
_coreConfig.route.rules.Add(new()
|
||||||
{
|
{
|
||||||
outbound = Global.DirectTag,
|
outbound = Global.DirectTag,
|
||||||
process_path = lstDirectExe
|
process_path = lstDirectExe,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// ICMP Routing
|
// ICMP Routing
|
||||||
var icmpRouting = _config.TunModeItem.IcmpRouting ?? "";
|
var icmpRouting = _config.TunModeItem.IcmpRouting ?? "";
|
||||||
|
|||||||
@@ -14,17 +14,20 @@ public partial class CoreConfigV2rayService
|
|||||||
_coreConfig.routing.rules.AddRange(tunRules);
|
_coreConfig.routing.rules.AddRange(tunRules);
|
||||||
}
|
}
|
||||||
var lstDirectExe = BuildRoutingDirectExe();
|
var lstDirectExe = BuildRoutingDirectExe();
|
||||||
_coreConfig.routing.rules.Add(new()
|
if (lstDirectExe.Count > 0)
|
||||||
{
|
{
|
||||||
port = "53",
|
_coreConfig.routing.rules.Add(new()
|
||||||
process = lstDirectExe,
|
{
|
||||||
outboundTag = Global.DnsOutboundTag,
|
port = "53",
|
||||||
});
|
process = lstDirectExe,
|
||||||
_coreConfig.routing.rules.Add(new()
|
outboundTag = Global.DnsOutboundTag,
|
||||||
{
|
});
|
||||||
process = lstDirectExe,
|
_coreConfig.routing.rules.Add(new()
|
||||||
outboundTag = Global.DirectTag,
|
{
|
||||||
});
|
process = lstDirectExe,
|
||||||
|
outboundTag = Global.DirectTag,
|
||||||
|
});
|
||||||
|
}
|
||||||
_coreConfig.routing.rules.Add(new()
|
_coreConfig.routing.rules.Add(new()
|
||||||
{
|
{
|
||||||
inboundTag = ["tun"],
|
inboundTag = ["tun"],
|
||||||
|
|||||||
Reference in New Issue
Block a user