mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-07 01:41:22 +01:00
Reuse the same variable
This commit is contained in:
parent
66799c4159
commit
2d25719a69
@ -122,7 +122,7 @@ func (patternMatcher *PatternMatcher) Eval(qName string) (reject bool, reason st
|
||||
|
||||
revQname := StringReverse(qName)
|
||||
if match, xval, found := patternMatcher.blockedSuffixes.LongestPrefix([]byte(revQname)); found {
|
||||
if len(match) == len(qName) || revQname[len(match)] == '.' {
|
||||
if len(match) == len(revQname) || revQname[len(match)] == '.' {
|
||||
return true, "*." + StringReverse(string(match)), xval
|
||||
}
|
||||
if len(match) < len(revQname) && len(revQname) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user