mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 11:52:48 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
b0c0a82ae7
@ -1116,6 +1116,8 @@ class SSH2
|
|||||||
* Default Constructor.
|
* Default Constructor.
|
||||||
*
|
*
|
||||||
* $host can either be a string, representing the host, or a stream resource.
|
* $host can either be a string, representing the host, or a stream resource.
|
||||||
|
* If $host is a stream resource then $port doesn't do anything, altho $timeout
|
||||||
|
* still will be used
|
||||||
*
|
*
|
||||||
* @param mixed $host
|
* @param mixed $host
|
||||||
* @param int $port
|
* @param int $port
|
||||||
@ -1214,6 +1216,8 @@ class SSH2
|
|||||||
? \WeakReference::create($this)
|
? \WeakReference::create($this)
|
||||||
: $this;
|
: $this;
|
||||||
|
|
||||||
|
$this->timeout = $timeout;
|
||||||
|
|
||||||
if (is_resource($host)) {
|
if (is_resource($host)) {
|
||||||
$this->fsock = $host;
|
$this->fsock = $host;
|
||||||
return;
|
return;
|
||||||
@ -1222,7 +1226,6 @@ class SSH2
|
|||||||
if (Strings::is_stringable($host)) {
|
if (Strings::is_stringable($host)) {
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
$this->port = $port;
|
$this->port = $port;
|
||||||
$this->timeout = $timeout;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user