mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
incorrect sftp version compatibility check
This commit is contained in:
@@ -77,7 +77,7 @@ public class SFTPEngine
|
||||
|
||||
operativeVersion = response.readInt();
|
||||
log.info("Client version {}, server version {}", clientVersion, operativeVersion);
|
||||
if (operativeVersion < clientVersion)
|
||||
if (clientVersion < operativeVersion)
|
||||
throw new SFTPException("Server reported protocol version: " + operativeVersion);
|
||||
|
||||
while (response.available() > 0)
|
||||
|
||||
Reference in New Issue
Block a user