Support importing raw IP lists as well

git-svn-id: file:///home/svn/framework3/trunk@8950 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-03-28 23:07:52 +00:00
parent 09dd8c1fcc
commit ddc98a65a1
1 changed files with 3 additions and 0 deletions

View File

@ -1114,6 +1114,9 @@ class DBManager
elsif (firstline.index("# amap v"))
# then it's an amap mlog
return import_amap_mlog(data, wspace)
elsif (firstline =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
# then its an IP list
return import_ip_list(data, wspace)
end
raise DBImportError.new("Could not automatically determine file type")
end