mirror of
https://github.com/koush/scrypted.git
synced 2026-04-25 17:30:24 +01:00
10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
import { getUsableNetworkAddresses } from './ip';
|
|
|
|
export const SCRYPTED_INSECURE_PORT = parseInt(process.env.SCRYPTED_INSECURE_PORT) || 11080;
|
|
export const SCRYPTED_SECURE_PORT = parseInt(process.env.SCRYPTED_SECURE_PORT) || 10443;
|
|
export const SCRYPTED_DEBUG_PORT = parseInt(process.env.SCRYPTED_DEBUG_PORT) || 10081;
|
|
|
|
export function getIpAddress(): string {
|
|
return getUsableNetworkAddresses()[0];
|
|
}
|