Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2017-08-24 23:55:27 -05:00
commit 4202f653ef
1 changed files with 1 additions and 1 deletions

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;
}