Fix rule text in the Reason
This commit is contained in:
parent
54bdacdde2
commit
73e20d1dd0
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue