1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

SSH2: ping tweaks

This commit is contained in:
terrafrost 2019-09-10 19:52:35 -05:00
parent 71aa8165fa
commit 69a11136ae
2 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@ class SFTP extends SSH2
*/ */
public function login($username, ...$args) public function login($username, ...$args)
{ {
$this->auth[] = $args; $this->auth[] = array_merge([$username], $args);
if (!$this->sublogin($username, ...$args)) { if (!$this->sublogin($username, ...$args)) {
return false; return false;
} }

View File

@ -971,7 +971,7 @@ class SSH2
* @var string|false * @var string|false
* @access private * @access private
*/ */
var $preferred_signature_format = false; protected $preferred_signature_format = false;
/** /**
* Authentication Credentials * Authentication Credentials
@ -979,7 +979,7 @@ class SSH2
* @var array * @var array
* @access private * @access private
*/ */
var $auth = []; protected $auth = [];
/** /**
* Default Constructor. * Default Constructor.