Skip to content

Commit

Permalink
fix(W-16441506): redis:cli command not working for private redis inst…
Browse files Browse the repository at this point in the history
…ances (#2973)
  • Loading branch information
justinwilaby authored Aug 12, 2024
1 parent 6b57765 commit 2d58422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@
"repository": "heroku/cli",
"scripts": {
"build": "rm -rf lib && tsc",
"build:dev": "rm -rf lib && tsc --sourcemap",
"lint": "eslint . --ext .ts --config ../../.eslintrc --ignore-path ../../.eslintignore-lib",
"postpublish": "rm -f oclif.manifest.json",
"prepack": "yarn run build && oclif manifest",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/redis/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function bastionConnect(uri: URL, bastions: string, config: Record<string,
})
})
const localPort = await portfinder.getPortPromise({startPort: 49152, stopPort: 65535})
const stream: Duplex = await promisify(tunnel.forwardOut)('localhost', localPort, uri.hostname, Number.parseInt(uri.port, 10))
const stream: Duplex = await promisify(tunnel.forwardOut.bind(tunnel))('localhost', localPort, uri.hostname, Number.parseInt(uri.port, 10))

let client: Duplex = stream
if (preferNativeTls) {
Expand Down

0 comments on commit 2d58422

Please sign in to comment.