lua ip2region c module forward with release version published

This commit is contained in:
lionsoul
2018-10-06 11:05:01 +08:00
parent a589b79e6c
commit 08eea15172
3 changed files with 38 additions and 36 deletions

View File

@@ -75,11 +75,13 @@ while ( true ) do
if ( data == nil ) then
io.write("Failed for ip=", line, " is it a valid ip address ?");
else
print(ip2region);
io.write(string.format("%u|%s in %5f millseconds\n", data.city_id, data.region, cost_time));
end
end
end
-- close the object
-- Also the lua gc will invoke it automatically
-- print(ip2region);
ip2region:close();