mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 16:49:42 +01:00
SSH2/Agent: backport fix from master branch
This commit is contained in:
parent
bd8f02906e
commit
f05091ca95
@ -496,11 +496,10 @@ class System_SSH_Agent
|
|||||||
* Signal that agent forwarding should
|
* Signal that agent forwarding should
|
||||||
* be requested when a channel is opened
|
* be requested when a channel is opened
|
||||||
*
|
*
|
||||||
* @param Net_SSH2 $ssh
|
|
||||||
* @return bool
|
* @return bool
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function startSSHForwarding($ssh)
|
function startSSHForwarding()
|
||||||
{
|
{
|
||||||
if ($this->forward_status == SYSTEM_SSH_AGENT_FORWARD_NONE) {
|
if ($this->forward_status == SYSTEM_SSH_AGENT_FORWARD_NONE) {
|
||||||
$this->forward_status = SYSTEM_SSH_AGENT_FORWARD_REQUEST;
|
$this->forward_status = SYSTEM_SSH_AGENT_FORWARD_REQUEST;
|
||||||
|
Loading…
Reference in New Issue
Block a user