Skip to content

Commit 45c3c48

Browse files
committed
Patch should not be here
1 parent 74cea5d commit 45c3c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def set_via(opts)
245245
def set_from_exploit(m)
246246
self.via = { 'Exploit' => m.fullname }
247247
self.via['Payload'] = ('payload/' + m.datastore['PAYLOAD'].to_s) if m.datastore['PAYLOAD']
248-
self.target_host = Rex::Socket.getaddress(m.target_host.address) if (m.target_host.to_s.strip.length > 0)
248+
self.target_host = Rex::Socket.getaddress(m.target_host) if (m.target_host.to_s.strip.length > 0)
249249
self.target_port = m.target_port if (m.target_port.to_i != 0)
250250
self.workspace = m.workspace
251251
self.username = m.owner

0 commit comments

Comments
 (0)