Skip to content

Commit dcc99f7

Browse files
committed
small revision in Hanshake class
1 parent 4dcb5f9 commit dcc99f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

src/handshaketype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class Handshake extends Uint8Array {
118118
const msg_type = HandshakeType.fromValue(copy[0]);
119119
const lengthOf = Uint24.from(copy.subarray(1)).value;
120120
const message = copy.subarray(4, 4 + lengthOf)
121-
return new Handshake(msg_type, lengthOf, message)
121+
return new Handshake(msg_type, message)
122122
}
123123
constructor(msg_type, message){
124124
const struct = new Struct(msg_type.Uint8, Uint24.fromValue(message.length), message)

0 commit comments

Comments
 (0)