Skip to content

Commit 8da45bf

Browse files
committed
Support %n in ProxyCommand
1 parent ba33b60 commit 8da45bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/authResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class RemoteSSHResolver implements vscode.RemoteAuthorityResolver, vscode
153153
}
154154
} else if (sshHostConfig['ProxyCommand']) {
155155
let proxyArgs = (sshHostConfig['ProxyCommand'] as unknown as string[])
156-
.map((arg) => arg.replace('%h', sshHostName).replace('%p', sshPort.toString()).replace('%r', sshUser));
156+
.map((arg) => arg.replace('%h', sshHostName).replace('%n', sshDest.hostname).replace('%p', sshPort.toString()).replace('%r', sshUser));
157157
let proxyCommand = proxyArgs.shift()!;
158158

159159
let options = {};

0 commit comments

Comments
 (0)