Support importing raw IP lists as well
git-svn-id: file:///home/svn/framework3/trunk@8950 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
09dd8c1fcc
commit
ddc98a65a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue