SSH2: only capture login info once

This commit is contained in:
terrafrost 2023-12-18 22:54:09 -06:00
parent 404f86fb61
commit 23f117e32b
1 changed files with 3 additions and 1 deletions

View File

@ -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