empty input ignore

This commit is contained in:
lion 2025-09-23 11:09:23 +08:00
parent 75893f0331
commit 7576daa6cc

View File

@ -134,6 +134,12 @@ while ( true ) do
break
end
-- empty string ignore
line = line:gsub("^%s*(.-)%s*$", "%1")
if string.len(line) < 1 then
goto continue
end
ip_bytes, err = xdb.parse_ip(line)
-- print(string.format("parse(%s): %s, err: %s", line, xdb.ip_to_string(ip_bytes), err))
if err ~= nil then