UNPKG

kaven-utils

Version:

Utils for Node.js.

36 lines (35 loc) 975 B
/******************************************************************** * @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: 2023-11-24 14:50:05.588 * @version: 5.0.4 * @times: 8 * @lines: 38 * @copyright: Copyright © 2023 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, trace: false, ignoreCache: false, checkIp: (ip) => { if (ip) { return true; } return false; }, };