mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Merge branch '2.0'
This commit is contained in:
commit
b27655a262
@ -1190,8 +1190,8 @@ class SSH2
|
||||
$this->errors[] = utf8_decode($data);
|
||||
}
|
||||
|
||||
if ($matches[3] != '1.99' && $matches[3] != '2.0') {
|
||||
throw new \RuntimeException("Cannot connect to SSH $matches[1] servers");
|
||||
if (version_compare($matches[3], '1.99', '<')) {
|
||||
throw new \RuntimeException("Cannot connect to SSH $matches[3] servers");
|
||||
}
|
||||
|
||||
if (!$this->send_id_string_first) {
|
||||
|
Loading…
Reference in New Issue
Block a user