show .local addresses as local addresses
This commit is contained in:
parent
5079f05d5b
commit
6d97ca31a7
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@
|
||||||
li.textContent = ip;
|
li.textContent = ip;
|
||||||
|
|
||||||
//local IPs
|
//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);
|
document.getElementsByTagName("ul")[0].appendChild(li);
|
||||||
|
|
||||||
//IPv6 addresses
|
//IPv6 addresses
|
||||||
|
|
Loading…
Reference in a new issue