mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-05 14:29:20 +00:00
7 lines
315 B
TypeScript
7 lines
315 B
TypeScript
import { type NetworkInterface } from 'ontime-types';
|
|
|
|
/** Returns network addresses other than the localhost address injected by the info endpoint. */
|
|
export function getExternalInterfaces(interfaces: NetworkInterface[]) {
|
|
return interfaces.filter((networkInterface) => networkInterface.name !== 'localhost');
|
|
}
|