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 71beed1 commit 5b739f1
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 @@ -42,7 +42,7 @@ export function convertToString (proto: number | string, buf: Uint8Array): strin
case 42: // ipv6zone
return bytes2str(buf)
case 43: // ipcidr
return buf[0].toString()
return uint8ArrayToString(buf, 'base10')

case 6: // tcp
case 273: // udp
Expand Down

0 comments on commit 5b739f1

Please sign in to comment.