Skip to content

Commit

Permalink
Update src/convert.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Russell Dempsey <[email protected]>
  • Loading branch information
acul71 and SgtPooki authored Dec 2, 2024
1 parent 5b739f1 commit 8b3aa9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b3aa9f

Please sign in to comment.