From 73e20d1dd0b929cbbd00c3a828566c8dc3ebd73e Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Tue, 30 Oct 2018 17:37:11 +0300 Subject: [PATCH] Fix rule text in the Reason --- dnsfilter/dnsfilter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsfilter/dnsfilter.go b/dnsfilter/dnsfilter.go index 224bcf8b..5fb5d0ed 100644 --- a/dnsfilter/dnsfilter.go +++ b/dnsfilter/dnsfilter.go @@ -500,11 +500,11 @@ func (rule *rule) match(host string) (Result, error) { res.Reason = FilteredBlackList res.IsFiltered = true res.FilterID = rule.listID + res.Rule = rule.originalText if rule.isWhitelist { res.Reason = NotFilteredWhiteList res.IsFiltered = false } - res.Rule = rule.text } return res, nil }