From 6d97ca31a78576290db755d120441d62b172ed21 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 5 Mar 2023 23:13:40 -0300 Subject: [PATCH] show .local addresses as local addresses --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f2d612c..3d16816 100644 --- a/index.html +++ b/index.html @@ -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