mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-11 13:59:42 +05:00
Improves domain blocking and proxy handling (#7754)
This commit is contained in:
@@ -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:"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user