diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-26 18:40:07 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-26 18:40:07 +0300 |
commit | f94a016916b5f2b08d15c46d2cada9149507f16b (patch) | |
tree | 1f339541ffee800f67a36ae2b4674a02c49dd8ef /src/plugins/lua/once_received.lua | |
parent | b2c710add941f2db703d28b1eaab2ef2d7a2aa46 (diff) | |
download | rspamd-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.lua | 2 |
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 |