mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 08:38:29 +00:00
SSH2: Continue Subsystem Implementation.
Removed unused piece of code @2352. Added $this->_get_interactive_channel() to reset(). Unless we don't want to close the subsystem channel?? Leaving that decision up to you.
This commit is contained in:
parent
62aafecccc
commit
3afa655f57
@ -2349,7 +2349,6 @@ class Net_SSH2 {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$channel = $this->in_request_pty_exec ? NET_SSH2_CHANNEL_EXEC : NET_SSH2_CHANNEL_SHELL;
|
|
||||||
return $this->_send_channel_packet($this->_get_interactive_channel(), $cmd);
|
return $this->_send_channel_packet($this->_get_interactive_channel(), $cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2430,8 +2429,7 @@ class Net_SSH2 {
|
|||||||
*/
|
*/
|
||||||
function reset()
|
function reset()
|
||||||
{
|
{
|
||||||
$channel = $this->in_request_pty_exec ? NET_SSH2_CHANNEL_EXEC : NET_SSH2_CHANNEL_SHELL;
|
$this->_close_channel($this->_get_interactive_channel());
|
||||||
$this->_close_channel($channel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user