浏览代码

[Fix] Avoid problematic operation on possibly nil value in once_received

tags/1.2.0
Andrew Lewis 8 年前
父节点
当前提交
70fa6e154c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/plugins/lua/once_received.lua

+ 1
- 0
src/plugins/lua/once_received.lua 查看文件

@@ -114,6 +114,7 @@ local function check_quantity_received (task)
-- Unresolved host
task:insert_result(symbol, 1)

if not hn then return end
for _,h in ipairs(bad_hosts) do
if string.find(hn, h) then
task:insert_result(symbol_strict, 1, h)

正在加载...
取消
保存