UNPKG

kaven-utils

Version:

Utils for Node.js.

49 lines (48 loc) 1.27 kB
/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Utils] /src/base/Constants.ts * @create: 2023-11-21 09:42:46.305 * @modify: 2025-10-14 22:58:04.879 * @version: 6.1.0 * @times: 11 * @lines: 53 * @copyright: Copyright © 2023-2025 Kaven. All Rights Reserved. * @description: [description] * @license: [license] ********************************************************************/ /** * @since 5.0.3 * @version 2023-11-21 */ export const DefaultGetExternalIpByUPnPOptions = { timeoutMilliseconds: 5000, multicastIp: "239.255.255.250", port: 1900, /** * Let the system choose a free port by default */ localPort: 0, ignoreCache: false, checkIp: (ip) => { if (ip) { return true; } return false; }, }; /** * @since 6.1.0 * @version 2025-10-14 */ export const DefaultConfigFileNames = [ ".config.json", ".configuration.json", "config.json", "configuration.json", ".config.example.json", ".configuration.example.json", "config.example.json", "configuration.example.json", ];