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 b80f709 commit af5d458Copy full SHA for af5d458
src/utils/tcpros_utils.js
@@ -39,7 +39,7 @@ const tcpNoDelayField = 'tcp_nodelay=1';
39
function serializeStringFields(fields) {
40
let length = 0;
41
fields.forEach((field) => {
42
- length += (field.length + 4);
+ length += (Buffer.byteLength(field) + 4);
43
});
44
let buffer = new Buffer(4 + length);
45
let offset = base_serializers.uint32(length, buffer, 0);
0 commit comments