Added sorting functionality

This commit is contained in:
Michael Rowley 2021-12-29 23:31:39 +00:00
parent 8ae5fd084c
commit 588cd93900
2 changed files with 20 additions and 4 deletions

View file

@ -351,6 +351,7 @@ export function ipv4ToStr(ipInt) {
*/
export function strToIpv6(ipStr, retArr=true) {
if (retArr === false) {
// TODO: Expand address.
if (ipStr.length % 2 === 1) {
ipStr = "0" + ipStr;
}