mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-27 09:02:07 +03:00
Fix sing-box dns (#10234)
This commit is contained in:
@@ -365,9 +365,16 @@ public partial class CoreConfigSingboxService
|
||||
rule4ExpectedIPs = JsonUtils.DeepCopy(rule);
|
||||
rule4ExpectedIPs.geosite = regionGeosite;
|
||||
}
|
||||
if (rule.geosite?.Count > 0
|
||||
|| rule.domain?.Count > 0
|
||||
|| rule.domain_keyword?.Count > 0
|
||||
|| rule.domain_regex?.Count > 0
|
||||
|| rule.domain_suffix?.Count > 0)
|
||||
{
|
||||
AddRules(rule, item, directDnsList);
|
||||
}
|
||||
}
|
||||
|
||||
if (rule.geosite?.Count > 0 || rule.domain?.Count > 0)
|
||||
else
|
||||
{
|
||||
AddRules(rule, item, directDnsList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user