mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-06 06:37:36 +03:00
Reverse
This commit is contained in:
parent
cba755b4d1
commit
eedabcbd4a
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ func (plugin *PluginBlockUndelegated) Eval(pluginsState *PluginsState, msg *dns.
|
||||||
if len(questions) != 1 {
|
if len(questions) != 1 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
revQname := StringReverse(strings.ToLower(questions[0].Name))
|
revQname := strings.ToLower(StringReverse(questions[0].Name))
|
||||||
match, _, found := plugin.suffixes.LongestPrefix([]byte(revQname))
|
match, _, found := plugin.suffixes.LongestPrefix([]byte(revQname))
|
||||||
if !found {
|
if !found {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue