mirror of
https://github.com/2dust/v2rayN.git
synced 2025-11-18 21:52:52 +00:00
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:
parent
f677934257
commit
30e9e64fd5
1 changed files with 1 additions and 3 deletions
|
|
@ -316,10 +316,8 @@ public partial class CoreConfigSingboxService
|
|||
}
|
||||
else if (domain.StartsWith("domain:"))
|
||||
{
|
||||
rule.domain ??= [];
|
||||
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:"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue