Skip to content

Commit 7a5225c

Browse files
committed
Fixed JA4 version fallback value
1 parent a477f47 commit 7a5225c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/lib/JA4.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function toJA4(bytes) {
4444
the TLS version is the value of the Protocol Version. Handshake version (located at the top of the packet)
4545
should be ignored.
4646
*/
47-
let version = tlsr.version.value;
47+
let version = tlsr.handshake.value.helloVersion.value;
4848
for (const ext of tlsr.handshake.value.extensions.value) {
4949
if (ext.type.value === "supported_versions") {
5050
version = parseHighestSupportedVersion(ext.value.data);
@@ -189,7 +189,7 @@ export function toJA4S(bytes) {
189189
the TLS version is the value of the Protocol Version. Handshake version (located at the top of the packet)
190190
should be ignored.
191191
*/
192-
let version = tlsr.version.value;
192+
let version = tlsr.handshake.value.helloVersion.value;
193193
for (const ext of tlsr.handshake.value.extensions.value) {
194194
if (ext.type.value === "supported_versions") {
195195
version = parseHighestSupportedVersion(ext.value.data);

0 commit comments

Comments
 (0)