-
Notifications
You must be signed in to change notification settings - Fork 371
Closed
Description
Hi,
I'm wondering what this code is supposed to to, is it supposed to be able to connect to cygwin unix-domain sockets files ?
cli/src/spec-common/cliHost.ts
Lines 93 to 107 in 839ef66
| const socket = new net.Socket(); | |
| (async () => { | |
| const buf = await readLocalFile(socketPath); | |
| const i = buf.indexOf(0xa); | |
| const port = parseInt(buf.slice(0, i).toString(), 10); | |
| const guid = buf.slice(i + 1); | |
| socket.connect(port, '127.0.0.1', () => { | |
| socket.write(guid, err => { | |
| if (err) { | |
| console.error(err); | |
| socket.destroy(); | |
| } | |
| }); | |
| }); | |
| })() |
In microsoft/vscode-remote-release#6719 , I've found that a modification to this function can allow VSCode to forward Git Bash's ssh-agent socket file (which use the cygwin unix domain sockets format).
Would a PR be welcome to change this function to handle cygwin unix-domain sockets files ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working