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 4a6e081 commit 96d6e56Copy full SHA for 96d6e56
lib/packets/handshake.js
@@ -73,7 +73,7 @@ Handshake.prototype.toPacket = function (sequenceId) {
73
packet.writeBuffer(this.authPluginData1);
74
packet.writeInt8(0);
75
var capabilityFlagsBuffer = Buffer.allocUnsafe(4);
76
- capabilityFlagsBuffer.writeUInt32LE(this.capabilityFlags);
+ capabilityFlagsBuffer.writeUInt32LE(this.capabilityFlags, 0);
77
packet.writeBuffer(capabilityFlagsBuffer.slice(0, 2));
78
packet.writeInt8(this.characterSet);
79
packet.writeInt16(this.statusFlags);
0 commit comments