chore: adjust keyword for geosite-based nameserver policy
This commit is contained in:
parent
74d4ffe979
commit
5715ae8c5f
1 changed files with 2 additions and 2 deletions
|
@ -449,8 +449,8 @@ func NewResolver(config Config) *Resolver {
|
||||||
if len(config.Policy) != 0 {
|
if len(config.Policy) != 0 {
|
||||||
r.policy = trie.New[*Policy]()
|
r.policy = trie.New[*Policy]()
|
||||||
for domain, nameserver := range config.Policy {
|
for domain, nameserver := range config.Policy {
|
||||||
if strings.HasPrefix(strings.ToLower(domain), "@geosite:") {
|
if strings.HasPrefix(strings.ToLower(domain), "geosite:") {
|
||||||
groupname := domain[9:]
|
groupname := domain[8:]
|
||||||
inverse := false
|
inverse := false
|
||||||
if strings.HasPrefix(groupname, "!") {
|
if strings.HasPrefix(groupname, "!") {
|
||||||
inverse = true
|
inverse = true
|
||||||
|
|
Loading…
Reference in a new issue