report udp protocol correctly, see #5260, r13569

git-svn-id: file:///home/svn/framework3/trunk@13570 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-08-15 22:39:41 +00:00
parent 4779c039f0
commit f16e593628
2 changed files with 6 additions and 6 deletions

View File

@ -263,7 +263,7 @@ module Rex
@state[:service].each do |k,v|
case k
when "protocol"
port_hash[:protocol] = v
port_hash[:proto] = v
when "port"
port_hash[:port] = v
when "status"
@ -351,10 +351,10 @@ module Rex
db.emit(:address,@report_data[:host],&block) if block
host_object = db_report(:host, @report_data.merge(
:workspace => @args[:wspace] ) )
if host_object
db.report_import_note(host_object.workspace, host_object)
end
host_object
if host_object
db.report_import_note(host_object.workspace, host_object)
end
host_object
end
end

View File

@ -281,7 +281,7 @@ module Rex
@state[:service].each do |k,v|
case k
when "protocol"
port_hash[:protocol] = v
port_hash[:proto] = v
when "port"
port_hash[:port] = v
when "name"