Skip to content

Commit fa399e8

Browse files
committed
Land reverting rapid7#8135
2 parents a93aef8 + 271fd58 commit fa399e8

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)