| 383 | 383 | return undefined; |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | + |
| 387 | +/** |
| 388 | + * Checks the network interfaces to determine the presence of IPv6 and IPv4 addresses. |
| 389 | + * |
| 390 | + * @returns {Promise<[boolean, boolean, boolean, boolean]>} A promise that resolves to an array containing: |
| 391 | + * - [0]: `hasIPv6` (boolean) - Whether the computer has any IPv6 address, including (`::1`). |
| 392 | + * - [1]: `hasIPv4` (boolean) - Whether the computer has any IPv4 address, including (`127.0.0.1`). |
| 393 | + * - [2]: `hasIPv6Local` (boolean) - Whether the computer has local IPv6 address (`::1`). |
| 394 | + * - [3]: `hasIPv4Local` (boolean) - Whether the computer has local IPv4 address (`127.0.0.1`). |
| 395 | + */ |
| 386 | 396 | async function getHasIP() { |
| 387 | 397 | let hasIPv6 = false; |
| 388 | 398 | let hasIPv6Local = false; |