1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

SSH2: assume any SSH server >= 1.99 supports SSH2

This commit is contained in:
terrafrost 2017-08-24 22:01:40 -05:00
parent 5c792f6bc1
commit 9cbfd23cb6

View File

@ -1194,7 +1194,7 @@ class Net_SSH2
$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");
return false;
}