Skip to content

Commit dccd0b2

Browse files
committed
Fix localAddressPort in openTunnel
Fixes microsoft#88064
1 parent 541474a commit dccd0b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/remote/common/tunnel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface RemoteTunnel {
2020

2121
export interface TunnelOptions {
2222
remoteAddress: { port: number, host: string };
23-
localPort?: number;
23+
localAddressPort?: number;
2424
label?: string;
2525
}
2626

src/vs/workbench/api/browser/mainThreadTunnelService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class MainThreadTunnelService implements MainThreadTunnelServiceShape {
2222
}
2323

2424
async $openTunnel(tunnelOptions: TunnelOptions): Promise<TunnelDto | undefined> {
25-
const tunnel = await this.remoteExplorerService.forward(tunnelOptions.remoteAddress, tunnelOptions.localPort, tunnelOptions.label);
25+
const tunnel = await this.remoteExplorerService.forward(tunnelOptions.remoteAddress, tunnelOptions.localAddressPort, tunnelOptions.label);
2626
if (tunnel) {
2727
return TunnelDto.fromServiceTunnel(tunnel);
2828
}

0 commit comments

Comments
 (0)