mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 10:38:12 +01:00
SSH2: assume any SSH server >= 1.99 supports SSH2
This commit is contained in:
parent
5c792f6bc1
commit
9cbfd23cb6
@ -1194,7 +1194,7 @@ class Net_SSH2
|
|||||||
$this->errors[] = utf8_decode($extra);
|
$this->errors[] = utf8_decode($extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($matches[1] != '1.99' && $matches[1] != '2.0') {
|
if (version_compare($matches[1], '1.99', '<')) {
|
||||||
user_error("Cannot connect to SSH $matches[1] servers");
|
user_error("Cannot connect to SSH $matches[1] servers");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user