Skip to content

Commit c54ded6

Browse files
Jayson-Fongronf
authored andcommitted
Add support for client reported version 1.99
1 parent 6c46e76 commit c54ded6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

asyncssh/connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,7 @@ def _recv_version(self) -> bool:
15501550

15511551
self._inpbuf = self._inpbuf[idx+1:]
15521552

1553-
if (version.startswith(b'SSH-2.0-') or
1554-
(self.is_client() and version.startswith(b'SSH-1.99-'))):
1553+
if version.startswith(b'SSH-2.0-') or version.startswith(b'SSH-1.99-'):
15551554
if len(version) > _MAX_VERSION_LINE_LEN:
15561555
self._force_close(ProtocolError('Version too long'))
15571556

0 commit comments

Comments
 (0)