make sure ssh ident goes out in a single packet - #4167

This commit is contained in:
Eugene Pankov
2021-07-10 17:51:37 +02:00
parent e1f2e176ce
commit 6f912dc12b
6 changed files with 54 additions and 41 deletions

15
patches/ssh2+1.1.0.patch Normal file
View File

@@ -0,0 +1,15 @@
diff --git a/node_modules/ssh2/lib/protocol/Protocol.js b/node_modules/ssh2/lib/protocol/Protocol.js
index b4d1ee0..1e3ac66 100644
--- a/node_modules/ssh2/lib/protocol/Protocol.js
+++ b/node_modules/ssh2/lib/protocol/Protocol.js
@@ -254,8 +254,8 @@ class Protocol {
);
if (greeting)
this._onWrite(greeting);
- this._onWrite(this._identRaw);
- this._onWrite(CRLF);
+ this._onWrite(Buffer.concat([this._identRaw, CRLF]));
+ // this._onWrite(CRLF);
});
}
_destruct(reason) {