Skip to content

Commit 893a4a5

Browse files
authored
failure.rb: Make comments accurate again
1 parent 094fa81 commit 893a4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/module/failure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def report_failure
5858
if self.datastore['RHOST'] && (self.options['RHOST'] || self.options['RHOSTS'])
5959
# Only include RHOST if it's a single valid host, not a multi-value string or file path
6060
rhost = self.datastore['RHOST'].to_s
61-
# Check if RHOST is not a file path and doesn't contain spaces (multiple hosts)
61+
# Check if RHOST is a valid IP address to avoid ActiveRecord issues on validation
6262
if Rex::Socket.is_ip_addr?(rhost)
6363
info[:host] = rhost
6464
end

0 commit comments

Comments
 (0)