-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version:
master
- Platform: Windows
- Subsystem: net
Linux converts the ipv6 address "::" to "::1", while windows does not.
This makes server.address().address
useless [as a target address] when bound to IPv6 localhost 0.0.0.0
or ::
on Windows.
[addition]
Specifically the use of server.address().address
for initiating new connection:
const server = net.createServer(() => {});
server.listen();
server.address().address === '::';
net.connect(
{ port: server.address().port, host: server.address().address }
); // throws 'Error: connect EADDRNOTAVAIL :::56210'
While apparently Linux does allow opening a connection to the ::
unspecified address
Metadata
Metadata
Assignees
Labels
netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.