From 87afef3b1106cc32e8d197fdbb185fafe5dfa166 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 26 Oct 2020 16:13:25 -0700 Subject: [PATCH] Support ipv4 loopback ip checking --- web/pages/utils/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/utils/format.ts b/web/pages/utils/format.ts index 026746ebd..d22f48bee 100644 --- a/web/pages/utils/format.ts +++ b/web/pages/utils/format.ts @@ -6,7 +6,7 @@ export function formatIPAddress(ipAddress: string): string { let ip = ipAddressComponents.join(':') ip = ip.slice(0, ip.length - 1) - if (ip === '[::1]') { + if (ip === '[::1]' || ip === '127.0.0.1') { return "Localhost" }