Skip to content

Commit cc33b29

Browse files
committed
Land rapid7#8901, update nessus v2 import for consistent proto case
2 parents 3bdb572 + 368e374 commit cc33b29

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/core/db_manager/import/nessus/xml

1 file changed

+1
-1
lines changed

lib/msf/core/db_manager/import/nessus/xml/v2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def import_nessus_xml_v2(args={}, &block)
7474
nasl = item['nasl'].to_s
7575
nasl_name = item['nasl_name'].to_s
7676
port = item['port'].to_s
77-
proto = item['proto'] || "tcp"
77+
proto = item['proto'] ? item['proto'].downcase : "tcp"
7878
sname = item['svc_name']
7979
severity = item['severity']
8080
description = item['description']

0 commit comments

Comments
 (0)