Fix rule text in the Reason

This commit is contained in:
Andrey Meshkov 2018-10-30 17:37:11 +03:00
parent 54bdacdde2
commit 73e20d1dd0
1 changed files with 1 additions and 1 deletions

View File

@ -500,11 +500,11 @@ func (rule *rule) match(host string) (Result, error) {
res.Reason = FilteredBlackList res.Reason = FilteredBlackList
res.IsFiltered = true res.IsFiltered = true
res.FilterID = rule.listID res.FilterID = rule.listID
res.Rule = rule.originalText
if rule.isWhitelist { if rule.isWhitelist {
res.Reason = NotFilteredWhiteList res.Reason = NotFilteredWhiteList
res.IsFiltered = false res.IsFiltered = false
} }
res.Rule = rule.text
} }
return res, nil return res, nil
} }