Simplify sing-box rules for domain_suffix (#8306)
adapt to new domain_suffix behavior since sing-box 1.9.0
This commit is contained in:
@@ -316,10 +316,8 @@ public partial class CoreConfigSingboxService
|
|||||||
}
|
}
|
||||||
else if (domain.StartsWith("domain:"))
|
else if (domain.StartsWith("domain:"))
|
||||||
{
|
{
|
||||||
rule.domain ??= [];
|
|
||||||
rule.domain_suffix ??= [];
|
rule.domain_suffix ??= [];
|
||||||
rule.domain?.Add(domain.Substring(7));
|
rule.domain_suffix?.Add(domain.Substring(7));
|
||||||
rule.domain_suffix?.Add("." + domain.Substring(7));
|
|
||||||
}
|
}
|
||||||
else if (domain.StartsWith("full:"))
|
else if (domain.StartsWith("full:"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user