aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/reputation.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-27 20:10:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-27 20:10:03 +0000
commitff07415a3b827737a6be30d3d36ef123363556e1 (patch)
tree7ce3e61c1d05dfab61c88d58b7cc6a5a5344ac31 /src/plugins/lua/reputation.lua
parent24f85d1c0620e256178651633850e49b58dec601 (diff)
downloadrspamd-ff07415a3b827737a6be30d3d36ef123363556e1.tar.gz
rspamd-ff07415a3b827737a6be30d3d36ef123363556e1.zip
[Minor] Ratelimit: Fix formatting issue
Diffstat (limited to 'src/plugins/lua/reputation.lua')
-rw-r--r--src/plugins/lua/reputation.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index 5ee16354b..d846ece9a 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -411,19 +411,22 @@ local function ip_reputation_filter(task, rule)
if asn_stats then
local asn_score = generic_reputation_calc(asn_stats, rule, cfg.scores.asn, task)
score = score + asn_score
- table.insert(description_t, string.format('asn: %s(%.2f)', asn, asn_score))
+ table.insert(description_t, string.format('asn: %s(%.2f)',
+ asn, asn_score))
end
if country_stats then
local country_score = generic_reputation_calc(country_stats, rule,
cfg.scores.country, task)
score = score + country_score
- table.insert(description_t, string.format('country: %s(%.2f)', country, country_score))
+ table.insert(description_t, string.format('country: %s(%.2f)',
+ country, country_score))
end
if ip_stats then
local ip_score = generic_reputation_calc(ip_stats, rule, cfg.scores.ip,
task)
score = score + ip_score
- table.insert(description_t, string.format('ip: %s(%.2f)', ip, ip_score))
+ table.insert(description_t, string.format('ip: %s(%.2f)',
+ tostring(ip), ip_score))
end
if math.abs(score) > 0.001 then