Skip to content

Commit 271fd58

Browse files
committed
Revert "Land rapid7#8135, Report hosts always add ip to hostname if hostname is blank"
This reverts commit 5a1c7ca, reversing changes made to d10b3da.
1 parent a93aef8 commit 271fd58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/msf/core/db_manager/host.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ def report_host(opts)
177177
end
178178

179179
# Truncate the name field at the maximum field length
180-
if opts[:name].blank?
181-
opts[:name] = addr
182-
else
180+
if opts[:name]
183181
opts[:name] = opts[:name][0,255]
184182
end
185183

0 commit comments

Comments
 (0)