mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
Support ipv4 loopback ip checking
This commit is contained in:
parent
6d357857a7
commit
87afef3b11
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue