Fix bug with forwarding local unix socket / windows pipe

feature/forwarding
Kelvin Schoofs 4 years ago
parent b10c6ee8af
commit 0a4c8a21a3

@ -60,7 +60,7 @@ async function createLocalForwarding(connection: Connection, forwarding: PortFor
socket.pipe(channel).pipe(socket); socket.pipe(channel).pipe(socket);
}); });
} else { } else {
client.forwardOut(socket.localAddress, socket.localPort, forwarding.remoteAddress!, forwarding.remotePort!, (err, channel) => { client.forwardOut('localhost', 0, forwarding.remoteAddress!, forwarding.remotePort!, (err, channel) => {
if (err) return socket.destroy(err); if (err) return socket.destroy(err);
socket.pipe(channel).pipe(socket); socket.pipe(channel).pipe(socket);
}); });

Loading…
Cancel
Save