1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2017-08-24 23:55:27 -05:00
commit 4202f653ef

View File

@ -1177,7 +1177,7 @@ class SSH2
$this->errors[] = utf8_decode($data);
}
if ($matches[3] != '1.99' && $matches[3] != '2.0') {
if (version_compare($matches[3], '1.99', '<')) {
user_error("Cannot connect to SSH $matches[3] servers");
return false;
}