mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-07 05:47:38 +03:00
Fixes
This commit is contained in:
parent
12408d60a0
commit
12e645e9d2
7 changed files with 121 additions and 56 deletions
|
@ -162,9 +162,12 @@ find:
|
|||
for _, domain := range geoSite.Domain {
|
||||
if domain.Type == routercommon.Domain_Full {
|
||||
domains = append(domains, domain.Value)
|
||||
} else if domain.Type == routercommon.Domain_RootDomain {
|
||||
domains = append(domains, "+."+domain.Value)
|
||||
} else if domain.Type == routercommon.Domain_Plain {
|
||||
logrus.Warn("ignore match rule ", geoSite.CountryCode, " ", domain.Value)
|
||||
} else {
|
||||
domains = append(domains, domain.Value)
|
||||
domains = append(domains, "."+domain.Value)
|
||||
domains = append(domains, "regexp:"+domain.Value)
|
||||
}
|
||||
}
|
||||
loaded[strings.ToLower(geoSite.CountryCode)] = common.Uniq(domains)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue