Skip to content

Commit 4f0c36a

Browse files
committed
Don't log blocked suffixes in reverse
1 parent 9a85a50 commit 4f0c36a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/plugin_block_name.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (plugin *PluginBlockName) Eval(pluginsState *PluginsState, msg *dns.Msg) er
144144
match, _, found := plugin.blockedSuffixes.Root().LongestPrefix([]byte(revQname))
145145
if found {
146146
if len(match) == len(qName) || revQname[len(match)] == '.' {
147-
reject, reason = true, "*"+string(match)
147+
reject, reason = true, "*."+StringReverse(string(match))
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)