oops, the transport socket was getting removed prematurely, causing interact fail
git-svn-id: file:///home/svn/framework3/trunk@10572 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
af28507c36
commit
64ad40dc17
|
@ -191,7 +191,12 @@ module Net
|
|||
user = options.fetch(:user, user)
|
||||
if auth.authenticate("ssh-connection", user, options[:password])
|
||||
connection = Connection::Session.new(transport, options)
|
||||
connection.auth_info = auth.auth_info
|
||||
connection.auth_info = auth.auth_info
|
||||
|
||||
# Tell MSF not to auto-close this socket anymore...
|
||||
# This allows the transport socket to surive with the session.
|
||||
options[:msfmodule].remove_socket(transport.socket)
|
||||
|
||||
if block_given?
|
||||
yield connection
|
||||
connection.close
|
||||
|
|
Loading…
Reference in New Issue