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

Merge branch '2.0'

This commit is contained in:
terrafrost 2017-08-24 23:56:08 -05:00
commit b27655a262

View File

@ -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) {