mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
d59599fc18
partially unblocks #25470 This PR aligns the resolution of `localhost` hostname to Node.js behavior. In Node.js `dns.lookup("localhost", (_, addr) => console.log(addr))` prints ipv6 address `::1`, but it prints ipv4 address `127.0.0.1` in Deno. That difference causes some errors in the work of enabling `createConnection` option in `http.request` (#25470). This PR fixes the issue by aligning `dns.lookup` behavior to Node.js. This PR also changes the following behaviors (resolving TODOs): - `http.createServer` now listens on ipv6 address `[::]` by default on linux/mac - `net.createServer` now listens on ipv6 address `[::]` by default on linux/mac These changes are also alignments to Node.js behaviors. |
||
---|---|---|
.. | ||
_libuv_winerror.ts | ||
_listen.ts | ||
_node.ts | ||
_timingSafeEqual.ts | ||
_utils.ts | ||
ares.ts | ||
async_wrap.ts | ||
buffer.ts | ||
cares_wrap.ts | ||
connection_wrap.ts | ||
constants.ts | ||
crypto.ts | ||
handle_wrap.ts | ||
mod.ts | ||
node_file.ts | ||
node_options.ts | ||
pipe_wrap.ts | ||
README.md | ||
stream_wrap.ts | ||
string_decoder.ts | ||
symbols.ts | ||
tcp_wrap.ts | ||
types.ts | ||
udp_wrap.ts | ||
util.ts | ||
uv.ts |
Internal Bindings
The modules in this directory implement (simulate) C++ bindings implemented in
the ./src/
directory of the Node.js
repository.
These bindings are created in the Node.js source code by using
NODE_MODULE_CONTEXT_AWARE_INTERNAL
.
Please refer to https://github.com/nodejs/node/blob/master/src/README.md for further information.