From 8b3aa9fd121dbda8fd3d9d824455f59922c16da7 Mon Sep 17 00:00:00 2001 From: acul71 <34693171+acul71@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:58:51 +0100 Subject: [PATCH] Update src/convert.ts Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> --- src/convert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert.ts b/src/convert.ts index 035c18d7..cbc5b078 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -85,7 +85,7 @@ export function convertToBytes (proto: string | number, str: string): Uint8Array case 42: // ipv6zone return str2bytes(str) case 43: // ipcidr - return new Uint8Array([parseInt(str, 10)]) + return uint8ArrayFromString(str, 'base10') case 6: // tcp case 273: // udp