Skip to content

Commit c4ec824

Browse files
authored
Enable the family autodetection algorithm (microsoft#191970)
Fixes microsoft#191945: Enable the family autodetection algorithm to support a case where localhost resolves first to the ipv6 address and only second to the ipv4 address, and the desired server listens only on ipv4
1 parent 891b242 commit c4ec824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/server/node/remoteExtensionHostAgentServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ class RemoteExtensionHostAgentServer extends Disposable implements IServerAPI {
551551
const socket = net.createConnection(
552552
{
553553
host: host,
554-
port: port
554+
port: port,
555+
autoSelectFamily: true
555556
}, () => {
556557
socket.removeListener('error', e);
557558
socket.pause();

0 commit comments

Comments
 (0)