From 894cc089e1421ab56ceed946e65ab5456d57d90b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 2 Mar 2016 12:58:26 +0000 Subject: [PATCH] [Fix] Add more guards for IP address --- src/plugins/lua/once_received.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 7d084a991..4bac5adff 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -77,7 +77,7 @@ local function check_quantity_received (task) local hn = task:get_hostname() -- Here we don't care about received - if (not hn or hn == 'unknown') and task_ip then + if (not hn or hn == 'unknown') and task_ip and task_ip:is_valid() then task:get_resolver():resolve_ptr({task = task, name = task_ip:to_string(), callback = recv_dns_cb -- 2.39.5