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

View File

@ -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
}