summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 35c509bad..46a3e1b09 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -48,7 +48,7 @@ local function check_quantity_received (task)
if not r['real_hostname'] or string.lower(r['real_hostname']) == 'unknown' or
string.match(r['real_hostname'], '^%d+%.%d+%.%d+%.%d+$') then
- if r['real_ip'] and r['real_ip']:to_string() then
+ if r['real_ip'] and r['real_ip']:is_valid() then
-- Try to resolve it again
task:get_resolver():resolve_ptr(task:get_session(), task:get_mempool(),
r['real_ip']:to_string(), recv_dns_cb)