瀏覽代碼

[Fix] Add more guards for IP address

tags/1.2.0
Vsevolod Stakhov 8 年之前
父節點
當前提交
894cc089e1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/plugins/lua/once_received.lua

+ 1
- 1
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

Loading…
取消
儲存