Files
ontime/apps/client/src/common/components/navigation-menu/other-addresses/otherAddresses.utils.ts
T

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');
}