We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69769b1 commit 7ff7c70Copy full SHA for 7ff7c70
lib/msf/core/db_manager/host.rb
@@ -175,12 +175,14 @@ def report_host(opts)
175
if opts[:info]
176
opts[:info] = opts[:info][0,65535]
177
end
178
-
+
179
# Truncate the name field at the maximum field length
180
if opts[:name]
181
opts[:name] = opts[:name][0,255]
182
+ else
183
+ opts[:name] = addr
184
185
186
if opts[:os_name]
187
os_name, os_flavor = split_windows_os_name(opts[:os_name])
188
opts[:os_name] = os_name if os_name.present?
0 commit comments