aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-26 18:40:07 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-26 18:40:07 +0300
commitf94a016916b5f2b08d15c46d2cada9149507f16b (patch)
tree1f339541ffee800f67a36ae2b4674a02c49dd8ef /src/plugins/lua/once_received.lua
parentb2c710add941f2db703d28b1eaab2ef2d7a2aa46 (diff)
downloadrspamd-f94a016916b5f2b08d15c46d2cada9149507f16b.tar.gz
rspamd-f94a016916b5f2b08d15c46d2cada9149507f16b.zip
* Fix patterns matching in lua plugins
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 86be20380..2a239a7d0 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -15,7 +15,7 @@ function check_quantity_received (task)
if symbol_strict then
local r = recvh[1]
-- Unresolved host
- if not r['real_hostname'] or r['real_hostname'] == 'unknown' or string.match(r['real_hostname'], '(%d+)\.(%d+)\.(%d+)\.(%d+)') then
+ if not r['real_hostname'] or r['real_hostname'] == 'unknown' or string.match(r['real_hostname'], '^%d+%.%d+%.%d+%.%d+$') then
task:insert_result(metric, symbol_strict, 1)
end
local i = true