Support ipv4 loopback ip checking

This commit is contained in:
Gabe Kangas 2020-10-26 16:13:25 -07:00
parent 6d357857a7
commit 87afef3b11

View file

@ -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"
}