1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-09 04:26:11 +02:00

work when the session is on a non-default interface.

git-svn-id: file:///home/svn/framework3/trunk@12386 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2011-04-21 04:22:49 +00:00
parent 4662f88d43
commit f4ca230d4b

View File

@ -27,7 +27,11 @@ opts = Rex::Parser::Arguments.new(
# Default parameters
#
rhost = Rex::Socket.source_address("1.2.3.4")
if (client.sock and client.sock.respond_to? :peerhost and client.sock.peerhost)
rhost = Rex::Socket.source_address(client.sock.peerhost)
else
rhost = Rex::Socket.source_address("1.2.3.4")
end
rport = 4545
vport = 5900
lhost = "127.0.0.1"