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); $this->errors[] = utf8_decode($data);
} }
if ($matches[3] != '1.99' && $matches[3] != '2.0') { if (version_compare($matches[3], '1.99', '<')) {
throw new \RuntimeException("Cannot connect to SSH $matches[1] servers"); throw new \RuntimeException("Cannot connect to SSH $matches[3] servers");
} }
if (!$this->send_id_string_first) { if (!$this->send_id_string_first) {