Skip to content

Commit 770863a

Browse files
committed
cloaking is not blocking
1 parent 6950ead commit 770863a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dnscrypt-proxy/monitoring_ui.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ func (ui *MonitoringUI) UpdateMetrics(pluginsState PluginsState, msg *dns.Msg) {
287287
}
288288

289289
// Update blocked queries count
290-
// Count all types of blocked queries: REJECT (blocked by name/IP), DROP (dropped), and CLOAK (cloaked)
290+
// Only count truly blocked queries: REJECT (blocked by name/IP) and DROP (dropped)
291+
// CLOAK is not counted as it redirects queries rather than blocking them
291292
if pluginsState.returnCode == PluginsReturnCodeReject ||
292-
pluginsState.returnCode == PluginsReturnCodeDrop ||
293-
pluginsState.returnCode == PluginsReturnCodeCloak {
293+
pluginsState.returnCode == PluginsReturnCodeDrop {
294294
mc.blockCount++
295295
dlog.Debugf("Blocked query (return code: %s), total blocks: %d",
296296
PluginsReturnCodeToString[pluginsState.returnCode], mc.blockCount)

0 commit comments

Comments
 (0)