lint

874127a4f9ec37307696c9de27dc7450af749ae1

BPplays <andymalbp@gmail.com>

1 files changed, +3 -3Showing whitespace changes
server.js+3 -3
@@ -9,7 +9,7 @@ import path from 'node:path';
99import util from 'node:util';
1010import net from 'node:net';
1111import dns from 'node:dns';
1212import { promises as dnsPromise } from 'node:dns';
1313import process from 'node:process';
1414import { fileURLToPath } from 'node:url';
1515
@@ -407,7 +407,7 @@ async function canResolve(name, useIPv6 = true, useIPv4 = true) {
407407 }
408408 }
409409
410410 console.log(v6Resolved, v4Resolved);
411411 return v6Resolved || v4Resolved;
412412
413413 } catch (error) {
@@ -771,7 +771,7 @@ const preSetupTasks = async function () {
771771 */
772772async function getAutorunHostname(useIPv6, useIPv4) {
773773 if (autorunHostname === 'auto') {
774774 let localhostResolve = await canResolve('localhost', useIPv6, useIPv4);
775775
776776 if (useIPv6 && useIPv4) {
777777 if (avoidLocalhost || !localhostResolve) return '[::1]';