mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -04:00
Update IP.mjs
This commit is contained in:
parent
67886c886d
commit
1eb6d03a6f
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ export function ipv4ToStr(ipInt) {
|
||||||
export function strToIpv6(ipStr, retArr=true) {
|
export function strToIpv6(ipStr, retArr=true) {
|
||||||
if (retArr === false) {
|
if (retArr === false) {
|
||||||
// TODO: Expand address.
|
// TODO: Expand address.
|
||||||
return Number("0x" + ipStr.replace(/\:/g, ''));
|
return Number("0x" + ipStr.replace(/:/g, ""));
|
||||||
}
|
}
|
||||||
let j = 0;
|
let j = 0;
|
||||||
const blocks = ipStr.split(":"),
|
const blocks = ipStr.split(":"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue