Skip to content

Commit 744724c

Browse files
committed
conditionalize fingerprinting
* fix bug where host not preserved
1 parent e29567f commit 744724c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db_manager/import.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def import(args={}, &block)
9191
ftype = import_filetype_detect(data)
9292
yield(:filetype, @import_filedata[:type]) if block
9393
self.send "import_#{ftype}".to_sym, args, &block
94-
wspace.hosts.each(&:normalize_os)
94+
wspace.hosts.each(&:normalize_os) unless args[:task].options["DS_PRESERVE_HOSTS"]
9595
wspace.update_attribute(:import_fingerprint, false)
9696
end
9797

0 commit comments

Comments
 (0)