summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/http.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2024-10-30 02:41:16 +0900
committerGitHub <noreply@github.com>2024-10-29 18:41:16 +0100
commita69224ea5bd02f08108aac867c492754095f2d34 (patch)
tree253aad351353b0ff8f3e3fb57785a8de41aadcdf /ext/node/polyfills/http.ts
parent51978a76540cac72dd35528dd023c3fc6d5eeca6 (diff)
Revert "fix(ext/node): fix dns.lookup result ordering (#26264)" (#26621)
This reverts commit d59599fc187c559ee231882773e1c5a2b932fc3d. Closes #26588
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r--ext/node/polyfills/http.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index e7a860ff1..e8a189f70 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -51,7 +51,6 @@ import { urlToHttpOptions } from "ext:deno_node/internal/url.ts";
import { kEmptyObject } from "ext:deno_node/internal/util.mjs";
import { constants, TCP } from "ext:deno_node/internal_binding/tcp_wrap.ts";
import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
-import { isWindows } from "ext:deno_node/_util/os.ts";
import {
connResetException,
ERR_HTTP_HEADERS_SENT,
@@ -1712,8 +1711,9 @@ export class ServerImpl extends EventEmitter {
port = options.port | 0;
}
- // Use 0.0.0.0 for Windows, and [::] for other platforms.
- let hostname = options.host ?? (isWindows ? "0.0.0.0" : "[::]");
+ // TODO(bnoordhuis) Node prefers [::] when host is omitted,
+ // we on the other hand default to 0.0.0.0.
+ let hostname = options.host ?? "0.0.0.0";
if (hostname == "localhost") {
hostname = "127.0.0.1";
}