show .local addresses as local addresses

This commit is contained in:
Cat /dev/Nulo 2023-03-05 23:13:40 -03:00
parent 5079f05d5b
commit 6d97ca31a7

View file

@ -107,7 +107,7 @@
li.textContent = ip;
//local IPs
if (ip.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/))
if (ip.match(/(^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01])))|(\.local$)/))
document.getElementsByTagName("ul")[0].appendChild(li);
//IPv6 addresses