report udp protocol correctly, see #5260, r13569
git-svn-id: file:///home/svn/framework3/trunk@13570 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4779c039f0
commit
f16e593628
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue