File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import crypto from 'node:crypto'
77import { fileURLToPath } from 'node:url'
88import type { ServerOptions as HttpsServerOptions } from 'node:https'
99import { builtinModules } from 'node:module'
10- import { promises as dns } from 'node:dns'
10+ import { promises as dns , getDefaultResultOrder } from 'node:dns'
1111import { performance } from 'node:perf_hooks'
1212import type { AddressInfo , Server } from 'node:net'
1313import fsp from 'node:fs/promises'
@@ -925,7 +925,7 @@ export function unique<T>(arr: T[]): T[] {
925925export function getLocalhostAddressIfDiffersFromDNS ( ) :
926926 | Promise < string | undefined >
927927 | undefined {
928- if ( dns . getDefaultResultOrder ( ) === 'verbatim' ) {
928+ if ( getDefaultResultOrder ( ) === 'verbatim' ) {
929929 return undefined
930930 }
931931 return Promise . all ( [
You can’t perform that action at this time.
0 commit comments