Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f08f997c22
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@
|
|||
var li = document.createElement("li");
|
||||
li.textContent = ip;
|
||||
|
||||
//local IPs (TODO: 172.16.0.0/12)
|
||||
if(ip.indexOf("10.") === 0 || ip.indexOf("192.168.") === 0)
|
||||
//local IPs
|
||||
if (ip.match(/^(192\.168\.|10\.|172\.(1[6-9]|2\d|3[01]))/))
|
||||
document.getElementsByTagName("ul")[0].appendChild(li);
|
||||
|
||||
//assume the rest are public IPs
|
||||
|
|
Loading…
Reference in a new issue