Add empty data to SSH_MSG_IGNORE messages (#974)

As required by RFC 4253 Section 11.2, and RFC 4251 Section 5

Co-authored-by: Jeroen van Erp <jeroen@hierynomus.com>
This commit is contained in:
Henning Pöttker
2025-03-18 21:33:12 +01:00
committed by GitHub
parent 7f8f43c8ae
commit b886085da5
3 changed files with 53 additions and 2 deletions

View File

@@ -29,6 +29,6 @@ final class Heartbeater
@Override
protected void doKeepAlive() throws TransportException {
conn.getTransport().write(new SSHPacket(Message.IGNORE));
conn.getTransport().write(new SSHPacket(Message.IGNORE).putString(""));
}
}