File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type {
5
5
OutgoingHttpHeaders as HttpServerHeaders
6
6
} from 'http'
7
7
import type { ServerOptions as HttpsServerOptions } from 'https'
8
- import { promises as dns } from 'dns'
9
8
import type { Connect } from 'types/connect'
10
9
import { isObject } from './utils'
11
10
import type { ProxyOptions } from './server/middlewares/proxy'
@@ -187,13 +186,6 @@ export async function httpServerStart(
187
186
) : Promise < number > {
188
187
let { port, strictPort, host, logger } = serverOptions
189
188
190
- // This could be removed when Vite only supports Node 17+ because verbatim=true is default
191
- // https://github.com/nodejs/node/pull/39987
192
- if ( host === 'localhost' ) {
193
- const addr = await dns . lookup ( 'localhost' , { verbatim : true } )
194
- host = addr . address
195
- }
196
-
197
189
return new Promise ( ( resolve , reject ) => {
198
190
const onError = ( e : Error & { code ?: string } ) => {
199
191
if ( e . code === 'EADDRINUSE' ) {
You can’t perform that action at this time.
0 commit comments