mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00:00
SSH2: only capture login info once
This commit is contained in:
parent
404f86fb61
commit
23f117e32b
@ -2278,7 +2278,9 @@ class Net_SSH2
|
||||
function login($username)
|
||||
{
|
||||
$args = func_get_args();
|
||||
$this->auth[] = $args;
|
||||
if (!$this->retry_connect) {
|
||||
$this->auth[] = $args;
|
||||
}
|
||||
|
||||
// try logging with 'none' as an authentication method first since that's what
|
||||
// PuTTY does
|
||||
|
Loading…
x
Reference in New Issue
Block a user