Fix report_note handling incorrect protocol names
parent
f081ede2aa
commit
e72d9bd21f
|
@ -77,7 +77,7 @@ module Msf::DBManager::Note
|
|||
sname = nil
|
||||
case opts[:proto].to_s.downcase # Catch incorrect usages
|
||||
when 'tcp','udp'
|
||||
proto = opts[:proto]
|
||||
proto = opts[:proto].to_s.downcase
|
||||
sname = opts[:sname] if opts[:sname]
|
||||
when 'dns','snmp','dhcp'
|
||||
proto = 'udp'
|
||||
|
@ -166,4 +166,4 @@ module Msf::DBManager::Note
|
|||
ret[:note] = note
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue