We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c46e76 commit c54ded6Copy full SHA for c54ded6
asyncssh/connection.py
@@ -1550,8 +1550,7 @@ def _recv_version(self) -> bool:
1550
1551
self._inpbuf = self._inpbuf[idx+1:]
1552
1553
- if (version.startswith(b'SSH-2.0-') or
1554
- (self.is_client() and version.startswith(b'SSH-1.99-'))):
+ if version.startswith(b'SSH-2.0-') or version.startswith(b'SSH-1.99-'):
1555
if len(version) > _MAX_VERSION_LINE_LEN:
1556
self._force_close(ProtocolError('Version too long'))
1557
0 commit comments