mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Support ipv4 loopback ip checking
This commit is contained in:
parent
6d357857a7
commit
87afef3b11
@ -6,7 +6,7 @@ export function formatIPAddress(ipAddress: string): string {
|
|||||||
|
|
||||||
let ip = ipAddressComponents.join(':')
|
let ip = ipAddressComponents.join(':')
|
||||||
ip = ip.slice(0, ip.length - 1)
|
ip = ip.slice(0, ip.length - 1)
|
||||||
if (ip === '[::1]') {
|
if (ip === '[::1]' || ip === '127.0.0.1') {
|
||||||
return "Localhost"
|
return "Localhost"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user