more jsdoc stuff

5b5b9a91aa83db22c9365fd7d3299e07b677ece6

BPplays <andymalbp@gmail.com>

1 files changed, +10 -0Ignore whitespace
server.js+10 -0
@@ -383,6 +383,16 @@ function getSessionCookieAge() {
383383 return undefined;
384384}
385385
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+ */
386396async function getHasIP() {
387397 let hasIPv6 = false;
388398 let hasIPv6Local = false;