mirror of https://github.com/2dust/v2rayN
Improves domain blocking and proxy handling (#7754)
parent
f45290eb3a
commit
a73906505c
|
@ -1865,8 +1865,7 @@ public class CoreConfigSingboxService
|
|||
else if (item.OutboundTag == Global.BlockTag)
|
||||
{
|
||||
rule.action = "predefined";
|
||||
rule.rcode = "NOERROR";
|
||||
rule.answer = new List<string> { "A" };
|
||||
rule.rcode = "NXDOMAIN";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1263,7 +1263,7 @@ public class CoreConfigV2rayService
|
|||
directDomainList.Add(normalizedDomain);
|
||||
}
|
||||
}
|
||||
else if (item.OutboundTag == Global.ProxyTag)
|
||||
else if (item.OutboundTag != Global.BlockTag)
|
||||
{
|
||||
if (normalizedDomain.StartsWith("geosite:"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue