mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-23 03:16:53 +00:00
Improves domain blocking and proxy handling
This commit is contained in:
parent
f45290eb3a
commit
76b1e8edf7
2 changed files with 2 additions and 3 deletions
|
@ -1865,8 +1865,7 @@ public class CoreConfigSingboxService
|
||||||
else if (item.OutboundTag == Global.BlockTag)
|
else if (item.OutboundTag == Global.BlockTag)
|
||||||
{
|
{
|
||||||
rule.action = "predefined";
|
rule.action = "predefined";
|
||||||
rule.rcode = "NOERROR";
|
rule.rcode = "NXDOMAIN";
|
||||||
rule.answer = new List<string> { "A" };
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1263,7 +1263,7 @@ public class CoreConfigV2rayService
|
||||||
directDomainList.Add(normalizedDomain);
|
directDomainList.Add(normalizedDomain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (item.OutboundTag == Global.ProxyTag)
|
else if (item.OutboundTag != Global.BlockTag)
|
||||||
{
|
{
|
||||||
if (normalizedDomain.StartsWith("geosite:"))
|
if (normalizedDomain.StartsWith("geosite:"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue