Fixed errors

This commit is contained in:
Michael Rowley 2021-12-30 01:54:20 +00:00
parent 200fbb2360
commit 9b2d2c65ca
2 changed files with 2 additions and 3 deletions

View file

@ -355,7 +355,7 @@ export function strToIpv6(ipStr, retArr=true) {
if (ipStr.length % 2 === 1) {
ipStr = "0" + ipStr;
}
return BigInt("0x" + ipStr.replace(":", ""));
return Number("0x" + ipStr.replace(":", ""));
}
let j = 0;
const blocks = ipStr.split(":"),